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

Hello;

Have the code below where the default file name for the png file is 'template'. How do I control the file name so that it will have the value that I want it to have?

Using SAS 9.3, will be doing this in 9.4 also.

Thank you,

Bill

goptions reset=all

         dev=png;

ods html path='c:\temp' body="PCR04.htm";

proc greplay nofs;

  igout=gseg;

  tc=template.templt;

  template=h2v2hdr;

  treplay 2:1 3:2 4:3 5:4;

run;

quit;

  ods html close;

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

You should be able to use the name= option that ballardw mentioned, but I think you'll only specify the option once for one treplay.


treplay 2:1 3:2 4:3 5:4 name='somename';



View solution in original post

2 REPLIES 2
ballardw
Super User

treplay 2:1 Name="Graph 1" 3:2 Name='Graph 2' 4:3 name='Graph 3' 5:4 Name='yet another name';

should do it.

GraphGuy
Meteorite | Level 14

You should be able to use the name= option that ballardw mentioned, but I think you'll only specify the option once for one treplay.


treplay 2:1 3:2 4:3 5:4 name='somename';



sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 803 views
  • 3 likes
  • 3 in conversation