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.

886 TYPE= Statement 4 Chapter 32TYPE= StatementSpecifies what type of conversion should occurTYPE= SQL | VIEW | <strong>ACCESS</strong>;ArgumentsSQLspecifies that PROC CV2VIEW converts descriptors to SQL views. This is the defaultbehavior.VIEWspecifies that PROC CV2VIEW converts descriptors to native view descriptor <strong>for</strong>mat.It is most useful in the 32-bit to 64-bit case. It does not convert view descriptorsacross different operating systems.<strong>ACCESS</strong>specifies that PROC CV2VIEW converts access descriptors to native access descriptor<strong>for</strong>mat. It is most useful in the 32-bit to 64-bit case. It does not convert accessdescriptors across different operating systems.DetailsWhen TYPE=VIEW or TYPE=<strong>ACCESS</strong>, then SAVEAS=, SUBMIT, and REPLACE=or REPLACE_FILE= are not valid options.Examples: CV2VIEW ProcedureExample 1: Converting an Individual View DescriptorIn this example, PROC CV2VIEW converts the MYVIEW view descriptor to the SQLview NEWVIEW. When you use ALTER, READ, and WRITE, the MYVIEW viewdescriptor is protected again alteration, reading, and writing. The PROC SQLstatements that PROC CV2VIEW generates are submitted and saved to an external filenamed SQL.<strong>SAS</strong>.libname input ’/username/descriptors/’;libname output ’/username/sqlviews/’;proc cv2view dbms=oracle;from_view = input.myview (alter=apwd);to_view = output.newview;saveas = ’/username/vsql/sql.sas’;submit;replace file;

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

Saved successfully!

Ooh no, something went wrong!