Is there a way to name SGE files produced in ODS?
I have
ODS graphics on;
ODS RTF file="C:/Users/SwissC/kmplot.rtf" sge=on;
ODS select SurvivalPlot;
PROC LIFETEST data=a PLOTS=survival …...
RUN;
ODS graphics off;
ODS RTF close sge=off;
Now using the above I get a SGE file called SurvivalPlot_RTF.sge. Is there a way to get the file named kmplot.sge? I am sure I could do some rename statements to rename the file but I am not sure if that is allowed on our system.
* There are possible syntax errors in the code above as it is not copy and pasted from my SAS session.
You can use the IMAGENAME option on the ODS GRAPHICS statement to specify the base name. SAS then adds an underscore followed by the name of the destination.
I used the first PROC LIFETEST in the online documentation example 2 as example code below.
The code below produces kmplot_RTF.sge.
ods graphics on / imagename="kmplot"
reset=index;
ODS RTF file="/folders/myfolders/ODS RTF/kmplot.rtf" sge=on;
ODS select SurvivalPlot;
proc lifetest data=sashelp.BMT plots=survival(atrisk=0 to 2500 by 500);
time T * Status(0);
strata Group / test=logrank adjust=sidak;
run;
ODS RTF close;
Cheers, but this still results in a SAS supllied suffix I would rather not have. In any case it is now not an issue as the client will not accept the sge image.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.