Chapter Contents |
Previous |
Next |
INFORMAT |
Optional statement | |
Applies to: | access descriptor and view descriptor |
Syntax | |
Details |
Syntax |
INFORMAT variable-identifier<=> SAS-informat-name <...variable-identifier-n<=> SAS-informat-name-n>; |
Details |
The INFORMAT statement changes a SAS variable informat from its default informat; the default informat is based on the database item's data type. You can enter as many informats as necessary using one INFORMAT statement.
You cannot specify the INFORMAT statement for a record.
The variable-identifier argument can be one of the following:
Note: Any name on the lefthand side of the equal sign must
be a SAS name, not a SYSTEM 2000 name. In an access descriptor, if the ASSIGN
statement is omitted, you must use the item number or component number (C-number)
on the lefthand side of the equal sign.
For example, if you want to associate the DATE7. informat with the second item in the access descriptor, issue the following statement:
informat 2 DATE7.;
You can only use the INFORMAT statement with a view descriptor if the ASSIGN statement in the access descriptor from which it is derived is specified with the NO value. When used for a view descriptor, the INFORMAT statement automatically selects the reformatted item. That is, if you change the informat associated with an item, you do not have to issue a SELECT statement for that item.
INF is an alias for the INFORMAT statement.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.