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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under z/OS 4 <strong>ACCESS</strong> Procedure Data Conversions 525DB2 Column TypeGRAPHIC(n)VARGRAPHIC(n)LONG VARGRAPHICINTEGERSMALLINTDECIMAL(m,n)FLOATNUMERIC(m,n)DATETIMEDATETIMEDefault <strong>SAS</strong> Format$n.( n127)m.nm.nm.nnonem.nDATE9.TIME8.DATETIME30.6This table shows the default DB2 data types that <strong>SAS</strong>/<strong>ACCESS</strong> assigns to <strong>SAS</strong>variable <strong>for</strong>mats during output operations.Table 16.7FormatsLIBNAME Statement: Default DB2 Data Types <strong>for</strong> <strong>SAS</strong> Variable<strong>SAS</strong> Variable Format$w.$CHARw.$VARYINGw.$HEXw.any date <strong>for</strong>matany time <strong>for</strong>matany datetime <strong>for</strong>matall other numeric <strong>for</strong>matsDB2 Data TypeCHARACTER(w) <strong>for</strong> 1–255VARCHAR(w) <strong>for</strong> >255DATETIMETIMESTAMPFLOAT<strong>ACCESS</strong> Procedure Data ConversionsThe following table shows the default <strong>SAS</strong> variable <strong>for</strong>mats that <strong>SAS</strong>/<strong>ACCESS</strong>assigns to DB2 data types when you use the <strong>ACCESS</strong> procedure.Table 16.8<strong>ACCESS</strong> Procedure: Default <strong>SAS</strong> Formats <strong>for</strong> DB2 Data TypesDB2 Column TypeCHAR(n)VARCHAR(n)LONG VARCHARDefault <strong>SAS</strong> Format$n. (n200)$n.

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

Saved successfully!

Ooh no, something went wrong!