BookmarkSubscribeRSS Feed
snorehorse
Calcite | Level 5

Using 9.04 TS1M2 & EG 5.1.

 

I'm using PROC SGRENDER to render a graph. When the output goes to the PDF writer directly, a conditional block in the PROC TEMPLATE executes and the result displayed as expected (in my case, if the condition passes, it adds a HIGHLOWPLOT to a statgraph). But when I put my PROC SGRENDER in an ODS DOCUMENT sandwich, and then replay, I am surprised to see everything as expected except no HIGHLOWPLOT.

 

When I comment out the conditional statement and closing ENDIF, the HIGHLOWPLOW appears as expected when REPLAYed.

 

Thank you for your time in helping me resolve this issue.

 

Here's what I have, more or less. The HIGHLOW will appear in the default ODS output, but not the REPLAY output:

proc template;
    define statgraph drama;
	dynamic CI_Y_or_N;
                /*Code omitted for brevity*/
                if(upcase(CI_Y_or_N) eq 'Y'				
	     /*HIGHLOWPLOT code here */			endif;
    /*More code omitted here*/
end;
run;

ods document name=work.yesCIdoc(write);

proc sgrender data=llama template=drama;
    dynamic CI_y_or_N = "Y";
run;

ods document close;

proc document name=work.yesCIdoc;
	replay;
run;

 

1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is probably a question for Tech Support, as they will need to look at your code in order to figure out what is happening. If you don't want to show them your data (or can't), then mock up a test program using one of the SASHELP datasets or make some fake data that shows the issue.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1122 views
  • 0 likes
  • 2 in conversation