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.

The DBLOAD Procedure <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 NULLS Statement 919middlena=middlename;type hiredate ’date’empid ’number(6,0)’familyid ’number(6,0)’;nulls 1=n;list;load;run;NULLS StatementSpecifies whether DBMS columns accept NULL valuesDefault: YNULLS variable-identifier-1 =Y|N;DetailsSome DBMSs have three valid values <strong>for</strong> this statement, Y, N, and D. See theDBMS-specific reference in this document <strong>for</strong> details about your DBMS.The NULLS statement specifies whether the DBMS columns that are associated withthe listed input <strong>SAS</strong> variables allow NULL values. Specify Y to accept NULL values.Specify N to reject NULL values and to require data in that column.If you specify N <strong>for</strong> a numeric column, no observations that contain missing values inthe corresponding <strong>SAS</strong> variable are loaded into the table. A message is written to the<strong>SAS</strong> log, and the current error count increases by one <strong>for</strong> each observation that is notloaded. See “ERRLIMIT= Statement” on page 916 <strong>for</strong> more in<strong>for</strong>mation.If a character column contains blanks (the <strong>SAS</strong> missing value) and you have specifiedN <strong>for</strong> the DBMS column, then blanks are inserted. If you specify Y, NULL values areinserted.The variable-identifier argument can be either the <strong>SAS</strong> variable name or thepositional equivalent from the LIST statement. The positional equivalent is the numberthat represents the variable’s place in the data set. For example, if you want thecolumn that is associated with the third <strong>SAS</strong> variable to accept NULL values, submitthis statement:nulls 3=y;If you omit the NULLS statement, the DBMS default action occurs. You can list asmany variables as you want in one NULLS statement. If you have previously defined acolumn as NULLS=N, you can use the NULLS statement to redefine it to accept NULLvalues.

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

Saved successfully!

Ooh no, something went wrong!