BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
laura6728
Obsidian | Level 7

Is there a way you can have an ods pdf file be named with the value of a variable.  For example, if have a field with a course number (ENGL.1301.87, ENGL.1301.88, ENGL.1301.89, etc.), can I make my file name be the corresponding record in the course number variable?  If so, how?  Can someone point me in the right direction?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

I don't understand if you want name PDF file at running ODS PDF FILE=.. , you can try CALL EXECUTE .

If you want rename PDF file after they are already created , then check function RENAME() .

Xia Keshan

View solution in original post

4 REPLIES 4
ballardw
Super User

Are you creating and output file for each record of a dataset? Or are you wanting to direct all of like records to the same document?

Ksharp
Super User

I don't understand if you want name PDF file at running ODS PDF FILE=.. , you can try CALL EXECUTE .

If you want rename PDF file after they are already created , then check function RENAME() .

Xia Keshan

laura6728
Obsidian | Level 7

Sorry for the late reply, but this worked! Thank You!

Ksharp
Super User

I don't understand if you want name PDF file at running ODS PDF FILE=.. , you can try CALL EXECUTE .

If you want rename PDF file after they are already created , then check function RENAME() .

Xia Keshan

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2155 views
  • 1 like
  • 3 in conversation