BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

Hi,

I'll be having a process flow scheduled to run weekly and then output the eport into a pdf file. Would it be possible to parameterize the filename of the output PDF file?

Thanks!

Milton

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  Normally, when folks talk about parameters, they mean macro variables. If you are using SAS Enterprise Guide, it has a Parameter Manager, which builds macro variables behind the scenes for you to use. In order to use the parameters as pieces of the file name, you may need to edit the code that EG generates. If you are going to edit the code, then you may just want to learn about using SAS Macro variables to do what you want to do. This paper should serve as a good introduction to macro processing from simple parameter usage to the more complex macro program.

http://www2.sas.com/proceedings/sugi28/056-28.pdf

  The attached screen shot shows 2 examples of building file names from 3 different macro variables. This is a screen shot of 3 macro variables being created with %LET statements. Then, the macro variables are used in 2 different ways to build file names for output files.

cynthia


resolve_macvar_filename.jpg
milts
Pyrite | Level 9

Thanks Cynthia I'll go over the pdf file.

Milton

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 706 views
  • 3 likes
  • 2 in conversation