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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to HP Neoview 4 Extracting 567ExtractingOverviewBulk extracting is the fastest way to retrieve large numbers of rows from an HPNeoview table. To use the bulk-extract facility, specify BULKEXTRACT=YES. The bulkextract facility uses the HP Neoview Transporter with an HP Neoview control file tomove data from the client to HP Neoview into <strong>SAS</strong>.Here are the HP Neoview bulk-extract data set options:BL_BADDATA_FILE=BL_DATAFILE=BL_DELETE_DATAFILE=BL_DELIMITER=BL_FAILEDDATA=BL_SYSTEM=BL_TRUNCATE=BL_USE_PIPE=BULKEXTRACT=ExamplesThis first example shows how you can read the large HP Neoview table, FLIGHTS98,to create and populate a <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98:libname sasflt ’<strong>SAS</strong>-data-library’;libname net_air neoview DSN=air2 user=louispwd=fromage schema=FLIGHTS;proc sql;create table sasflt.flt98as select * from net_air.flights98(bulkextract=YES bl_system=FLT0101);quit;This next example shows how you can append the contents of the HP Neoview table,ALLFLIGHTS, to an existing <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98. The BL_USE_PIPE=NOoption <strong>for</strong>ces <strong>SAS</strong>/<strong>ACCESS</strong> Interface to HP Neoview to read data from a flat file, asspecified in the BL_DATAFILE= option. Rather than deleting the data file,BL_DELETE_DATAFILE=NO causes the engine to leave it after the extract hascompleted.proc append base=sasflt.flt98data=net_air.allflights(BULKEXTRACT=YESBL_DATAFILE=’/tmp/fltdata.dat’BL_USE_PIPE=NOBL_DELETE_DATAFILE=NO);BL_SYSTEM=FLT0101run;

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

Saved successfully!

Ooh no, something went wrong!