Chapter Contents |
Previous |
Next |
LOAD |
Required statement for loading or appending data |
Syntax | |
Details | |
Sending a DBMS-specific, Nonquery Statement | |
Example |
Syntax |
LOAD; |
When you create and load a DBMS table, you must place statements or groups of statements in a certain order after the PROC DBLOAD statement and its options, as listed below:
Sending a DBMS-specific, Nonquery Statement |
If you use the DBLOAD procedure only to submit DBMS-specific, nonquery SQL statements to the DBMS (and not to load a table), omit the LOAD statement. The order of the statements listed above is the same. See SQL for more information on this process.
Example |
The following example creates the SUMMERTEMPS table in ORACLE based on the DLIB.TEMPEMPS data file. See Appendix 1, "Sample Data" for a description of this file.
proc dbload dbms=oracle data=dlib.tempemps; user=testuser; password=testpass; path='testpath'; table=summertemps; rename firstnam=firstname middlena=middlename; type hiredate 'date' empid 'number(6,0)' familyid 'number(6,0)'; nulls 1=n; list; load; run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.