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.

566 Loading 4 Chapter 18uses the HP Neoview Transporter with an HP Neoview control file to move data fromthe client to HP Neoview.Here are the HP Neoview bulk-load data set options. For detailed in<strong>for</strong>mation aboutthese options, see Chapter 11, “Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>,” on page 203.3 BL_BADDATA_FILE=3 BL_DATAFILE=3 BL_DELETE_DATAFILE=3 BL_DELIMITER=3 BL_DISCARDS=3 BL_ERRORS=3 BL_FAILEDDATA=3 BL_HOSTNAME=3 BL_NUM_ROW_SEPS=3 BL_PORT=3 BL_RETRIES=3 BL_ROWSETSIZE=3 BL_SYNCHRONOUS=3 BL_TENACITY=3 BL_TRIGGER=3 BL_TRUNCATE=3 BL_USE_PIPE=3 BULKLOAD=ExamplesThis first example shows how you can use a <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98, to createand load a large HP Neoview table, FLIGHTS98:libname sasflt ’<strong>SAS</strong>-data-library’;libname net_air neoview DSN=air2 user=louispwd=fromage schema=FLIGHTS;proc sql;create table net_air.flights98(bulkload=YES bl_system=FLT0101)as select * from sasflt.flt98;quit;This next example shows how you can append the <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98, tothe existing HP Neoview table, ALLFLIGHTS. The BL_USE_PIPE=NO option <strong>for</strong>ces<strong>SAS</strong>/<strong>ACCESS</strong> Interface to HP Neoview to write data to a flat file, as specified in theBL_DATAFILE= option. Rather than deleting the data file,BL_DELETE_DATAFILE=NO causes the engine to leave it after the load has completed.proc append base=net_air.allflights(BULKLOAD=YESBL_DATAFILE=’/tmp/fltdata.dat’BL_USE_PIPE=NOBL_DELETE_DATAFILE=NO)BL_SYSTEM=FLT0101data=sasflt.flt98;run;

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

Saved successfully!

Ooh no, something went wrong!