DataObject.SetVarInformat

Prototypes

void SetVarInformat( String sVarName, String sInformat )

Parameters

String sVarName
The name of the variable whose informat you want to set.

String sInformat
The informat you want to associate with the variable. The sInformat parameter must be a valid SAS informat. To specify that the variable should have no informat, pass "" for this parameter.

Remarks

This method associates a SAS informat with a variable.

Example
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
dates = StringToDate( "01Jan2001" );
dobj.AddVar( "Date", dates );
dobj.SetVarFormat( "Date", "DATE9." );
dobj.SetVarInformat( "Date", "DATE9." );
inf = dobj.GetVarInformat( "Date" );
print inf;
DataTable.Create( dobj ).ActivateWindow();
See Also

DataObject.GetVarInformat