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.

638 Publishing <strong>SAS</strong> Formats 4 Chapter 223 calls the <strong>SAS</strong>_COMPILEUDF function to compile the source files into object filesand to access the <strong>SAS</strong> <strong>9.2</strong> Formats Library <strong>for</strong> Netezza3 uses <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Netezza to run the script to create the <strong>SAS</strong>_PUT( )function with the object filesRunning the %INDNZ_PUBLISH_FORMATS MacroTo run the %INDNZ_PUBLISH_FORMATS macro, complete the following steps:1 Start <strong>SAS</strong> <strong>9.2</strong> and submit these commands in the Program Editor or EnhancedEditor:%indnzpf;%let indconn = server=myserver user=myuserid password=XXXXdatabase=mydb;The %INDNZPF macro is an autocall library that initializes the <strong>for</strong>matpublishing software.The INDCONN macro variable is used as credentials to connect to Netezza. Youmust specify the server, user, password, and database to access the machine onwhich you have installed the Netezza data warehouse. You must assign theINDCONN macro variable be<strong>for</strong>e the %INDNZ_PUBLISH_FORMATS macro isinvoked.Here is the syntax <strong>for</strong> the value of the INDCONN macro variable:SERVER=server USER=userid PASSWORD=passwordDATABASE=databaseNote: You can use only PASSWORD= or PW= <strong>for</strong> the password argument. Otheraliases such as PASS= or PWD= are not supported and cause errors. 4Note: The INDCONN macro variable is not passed as an argument to the%INDNZ_PUBLISH_FORMATS macro. This in<strong>for</strong>mation can be concealed in your<strong>SAS</strong> job. You might want to place it in an autoexec file and set the permissions onthe file so that others cannot access the user ID and password. 42 Run the %INDNZ_PUBLISH_FORMATS macro. For more in<strong>for</strong>mation, see“%INDNZ_PUBLISH_FORMATS Macro Syntax” on page 638.Messages are written to the <strong>SAS</strong> log that indicate whether the <strong>SAS</strong>_PUT( )function was successfully created.%INDNZ_PUBLISH_FORMATS Macro Syntax%INDNZ_PUBLISH_FORMATS ();

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

Saved successfully!

Ooh no, something went wrong!