void SetVarFormat( String sVarName, String sFormat )
String sVarName
The name of the variable whose format you want to set.
String sFormat
The format you want to associate with the variable. The sFormat parameter must be a valid SAS format. To specify that the variable should have no format, pass "" for this parameter.
This method associates a SAS format with a 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", "6.3" ); DataTable.Create( dobj ).ActivateWindow();