String GetVarFormat( String sVarName )
The return value is a reference to a String object containing the SAS format associated with the specified variable in the DataObject. If no format is associated with the specified variable, the returned string is empty.
String sVarName
The name of the variable whose format you want to retrieve.
This method returns the SAS format associated with the specified variable.
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
x = { 1.1 2.5 3.52 54.728 97.82 };
dobj.AddVar( "X", x );
dobj.SetVarFormat( "X", "BEST8." );
f = dobj.GetVarFormat( "X" );
print f;