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 UNIX and PC Hosts 4 Key In<strong>for</strong>mation 469<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under UNIX and PC Hosts supports all DBLOADprocedure statements in batch mode. Here are the DBLOAD procedure specifics <strong>for</strong> theDB2 under UNIX and PC Hosts interface.3 DBMS= value is DB2.3 Here are the database description statements that PROC DBLOAD uses:IN= database-name;specifies the name of the database in which you want to store the new DB2table. The IN= statement is required and must immediately follow the PROCDBLOAD statement. The database-name is limited to eight characters.DATABASE= is an alias <strong>for</strong> the IN= statement.The database that you specify must already exist. If the database namecontains the _, $, @, or # special character, you must enclose it in quotationmarks. DB2 recommends against using special characters in database names,however.USER= user name;lets you connect to a DB2 database with a user ID that is different from thedefault login ID.USER= is optional in <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under UNIX and PCHosts. If you specify USER=, you must also specify PASSWORD=. If USER=is omitted, your default user ID is used.PASSWORD= password;specifies the password that is associated with your user ID.PASSWORD= is optional in <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under UNIXand PC Hosts because users have default user IDs. If you specify USER=,however, you must specify PASSWORD=.If you do not wish to enter your DB2 password in uncoded text on thisstatement, see PROC PWENCODE in Base <strong>SAS</strong> Procedures Guide <strong>for</strong> amethod to encode it.3 Here is the TABLE= statement:TABLE= table-name;identifies the DB2 table or DB2 view that you want to use to create an accessdescriptor. The table-name is limited to 18 characters. If you use quotationmarks, the name is case sensitive. The TABLE= statement is required.The schema-name is a person’s name or group ID that is associated withthe DB2 table. The schema name is limited to eight characters.3 Here is the NULLS statement.NULLS variable-identifier-1 =Y|N|D < . . . variable-identifier-n =Y|N|D >;enables you to specify whether the DB2 columns that are associated with thelisted <strong>SAS</strong> variables allow NULL values. By default, all columns acceptNULL values.The NULLS statement accepts any one of these values.YNDspecifies that the column accepts NULL values. This isthe default.specifies that the column does not accept NULL values.specifies that the column is defined as NOT NULL WITHDEFAULT.

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

Saved successfully!

Ooh no, something went wrong!