Chapter Contents |
Previous |
Next |
INFORMAT |
Category: | Formatting |
Syntax | |
Details | |
Examples | |
Example 1: Verifying the Validity of a Character Informat | |
Example 2: Verifying the Validity of a Numeric Informat | |
See Also |
Syntax |
rc=INFORMAT(informat,type); |
1 | successful |
0 | not successful |
Type: Numeric
date7
. or comma10.2
).
Type: Character
'C' |
character |
'N' |
numeric |
Type: Character
Details |
If the specified informat is not known to the SAS session, then the operation is unsuccessful. The function verifies that valid widths are specified for informats.
See SAS Language Reference: Dictionary for details about informats.
Examples |
Verify that $MYFMT.
is
a valid character informat that has been defined for the current SAS session.
(The value returned to the variable RC is 1.)
rc=informat('$myfmt.','c');
Verify that 5.6
is not
a valid informat for numeric values. (The value returned to the variable RC
is 0.)
rc=informat('5.6','n');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.