13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

900 LIST Statement 4 Appendix 1DetailsThe FORMAT statement changes <strong>SAS</strong> variable <strong>for</strong>mats from their default <strong>for</strong>mats.The default <strong>SAS</strong> variable <strong>for</strong>mat is based on the data type of the DBMS column. See<strong>SAS</strong>/<strong>ACCESS</strong> documentation <strong>for</strong> your DBMS <strong>for</strong> in<strong>for</strong>mation about default <strong>for</strong>mats that<strong>SAS</strong> assigns to your DBMS data types.You can use the FORMAT statement with a view descriptor only if the ASSIGNstatement that was used when creating the access descriptor was specified with the NOvalue. When you use the FORMAT statement with access descriptors, the FORMATstatement also reselects columns that were previously dropped with the DROPstatement.For example, to associate the DATE9. <strong>for</strong>mat with the BIRTHDATE column and withthe second column in the access descriptor, submit this statement:<strong>for</strong>mat 2=date9. birthdate=date9.;The equal sign (=) is optional. For example, you can use the FORMAT statement tospecify new <strong>SAS</strong> variable <strong>for</strong>mats <strong>for</strong> four DBMS table columns:<strong>for</strong>mat productid 4.weight e16.9fibersize e20.13width e16.9;LIST StatementLists columns in the descriptor and gives in<strong>for</strong>mation about themApplies to: access descriptor or view descriptorDefault: ALLLIST ;ALLlists all DBMS columns in the table, positional equivalents, <strong>SAS</strong> variable names, and<strong>SAS</strong> variable <strong>for</strong>mats that are available <strong>for</strong> a descriptor.VIEWlists all DBMS columns that are selected <strong>for</strong> a view descriptor, their positionalequivalents, their <strong>SAS</strong> names and <strong>for</strong>mats, and any subsetting clauses.column-identifierlists in<strong>for</strong>mation about a specified DBMS column, including its name, positionalequivalent, <strong>SAS</strong> variable name and <strong>for</strong>mat, and whether it has been selected. If thecolumn name contains lowercase characters, special characters, or nationalcharacters, enclose the name in quotation marks.The column-identifier argument can be either the column name or the positionalequivalent, which is the number that represents the column’s place in the descriptor.For example, to list in<strong>for</strong>mation about the fifth column in the descriptor, submit thisstatement:list 5;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!