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.

918 LOAD Statement 4 Appendix 2DetailsThe LIST statement lists in<strong>for</strong>mation about some or all of the <strong>SAS</strong> variables to beloaded into the new DBMS table. By default, the list is sent to the <strong>SAS</strong> log.The LIST statement can take these arguments.ALLlists in<strong>for</strong>mation about all variables in the input <strong>SAS</strong> data set, despite whetherthose variables are selected <strong>for</strong> the load.FIELDlists in<strong>for</strong>mation about only the input <strong>SAS</strong> variables that are selected <strong>for</strong> the load.variable-identifierlists in<strong>for</strong>mation about only the specified variable. The variable-identifierargument can be either the <strong>SAS</strong> variable name or the positional equivalent. Thepositional equivalent is the number that represents the variable’s position in thedata set. For example, if you want to list in<strong>for</strong>mation <strong>for</strong> the column associatedwith the third <strong>SAS</strong> variable, submit this statement:list 3;You can specify LIST as many times as you want while creating a DBMS table;specify LIST be<strong>for</strong>e the LOAD statement to see the entire table.LOAD StatementCreates and loads the new DBMS tableValid: in the DBLOAD procedure (required statement <strong>for</strong> loading or appending data)LOAD;DetailsThe LOAD statement in<strong>for</strong>ms the DBLOAD procedure to execute the action that yourequest, including loading or appending data. This statement is required to create andload a new DBMS table or to append data to an existing table.When you create and load a DBMS table, you must place statements or groups ofstatements in a certain order after the PROC DBLOAD statement and its options, aslisted in Table A2.1 on page 913.ExampleThis example creates the SummerTemps table in Oracle based on theDLib.TempEmps data file.proc dbload dbms=oracle data=dlib.tempemps;user=testuser; password=testpass;path=’testpath’;table=summertemps;rename firstnam=firstname

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

Saved successfully!

Ooh no, something went wrong!