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.

822 Publishing <strong>SAS</strong> Formats 4 Chapter 28Running the %INDTD_PUBLISH_FORMATS MacroFollow these steps to run the %INDTD_PUBLISH_FORMATS macro.1 Start <strong>SAS</strong> <strong>9.2</strong> and submit these commands in the Program Editor or EnhancedEditor:%indtdpf;%let indconn = server="myserver" user="myuserid" password="xxxx"database="mydb";The %INDTDPF macro is an autocall library that initializes the <strong>for</strong>matpublishing software.The INDCONN macro variable is used as credentials to connect to Teradata.You must specify the server, user, password, and database in<strong>for</strong>mation to accessthe machine on which you have installed the Teradata EDW. You must assign theINDCONN macro variable be<strong>for</strong>e the %INDTD_PUBLISH_FORMATS macro isinvoked.Here is the syntax <strong>for</strong> the value of the INDCONN macro variable:SERVER="server" USER="userid" PASSWORD="password"DATABASE="database"Note: The INDCONN macro variable is not passed as an argument to the%INDTD_PUBLISH_FORMATS macro. Consequently, this in<strong>for</strong>mation can beconcealed in your <strong>SAS</strong> job. You might want to place it in an autoexec file and setthe permissions on the file so that others cannot access the user ID andpassword. 42 Run the %INDTD_PUBLISH_FORMATS macro. For more in<strong>for</strong>mation, see“%INDTD_PUBLISH_FORMATS Macro Syntax” on page 822.Messages are written to the <strong>SAS</strong> log that indicate whether the <strong>SAS</strong>_PUT( )function was successfully created.Note: USER librefs that are not assigned to WORK might cause unexpected orunsuccessful behavior. 4%INDTD_PUBLISH_FORMATS Macro Syntax%INDTD_PUBLISH_FORMATS ();ArgumentsDATABASE=database-namespecifies the name of a Teradata database to which the <strong>SAS</strong>_PUT( ) function andthe <strong>for</strong>mats are published. This argument lets you publish the <strong>SAS</strong>_PUT( )function and the <strong>for</strong>mats to a shared database where other users can access them.Interaction: The database that is specified by the DATABASE= argument takesprecedence over the database that you specify in the INDCONN macro variable.

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

Saved successfully!

Ooh no, something went wrong!