String GetVarInformat( String sVarName )
The return value is a reference to a String object containing the SAS informat associated with the specified variable in the DataObject. If no informat is associated with the specified variable, the returned string is empty.
String sVarName
The name of the variable whose informat you want to retrieve.
This method returns the SAS informat associated with the specified variable.
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();