![]() Chapter Contents |
![]() Previous |
![]() Next |
| FORMAT |
| Optional statement | |
| Applies to: | access descriptor or view descriptor |
| Interacts with: | ASSIGN, CONTENT, DROP, RESET |
| Syntax | |
| Details |
Syntax |
|
FORMAT
column-identifier-1<=>SAS-format-name-1
<...column-identifier-n<=>SAS-format-name-n >; |
| Details |
The FORMAT statement changes a SAS variable format from its default format; the default SAS variable format is based on the data type of the DBMS column. (See ACCESS Procedure Formats and Informats for information about the default formats that the ACCESS Procedure assigns to your DBMS data types.)
An editing statement, such as FORMAT, must follow the CREATE statement and the database-description statements when you create a descriptor. See CREATE for more information on the order of statements.
format 2=date9. birthdate=date9.;
You can use the FORMAT statement with a view descriptor
only if the ASSIGN statement that was used when creating the access descriptor
was specified with the
NO value.
FMT is the alias for the FORMAT statement.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.