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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

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
  • 4 replies
  • 1072 views
  • 1 like
  • 3 in conversation