Morning,
I am using ODS LAYOUT to generate a PDF report with several pages. At the top of each page I have defined a header area as follows:
ods region height=1in style={background=VLIGB };
ods text = " ";
ods region y = 0.35 in;
ods text = "^{style[background=VLIGB foreground=white font_size=16pt font_face='arial' just=c textdecoration=underline font_weight=bold]Investigator Request for Materials}";
ods region x = 0.15 in
y = 0.035 in;
ods text = '^{style[preimage="&preimage"]}';
The preimage macro variable (&preimage) value is a directory path to a logo .png file on my company's network. As I mentioned above there are multiple pages I am configuring for this report so I have defined this header information for each page. The problem I am running into is that SAS crashes when I use the preimage on more than one page. I will get the popup that says "sas.exe has stopped working - Check online for solution, close the program, or Debug the program". If I use it on just one page, the program runs just fine. If I remove the ods region/ods text statements that define the preimage, the program also runs just fine. Additionally, the program is nearly identical to another program I have that calls the preimage multiple times and that program runs fine as well.
I have tried outputting my log and viewing the results I don't see any errors or warnings, all macros are resolving as they should, etc. so at this point I am stuck on how to troubleshoot this further. Any ideas?
Hi,
Are you missing escape character.
ods escapechar='^';
Did you have right size image file for the header?
Yes I have defined my escapechar and the image size is fine. As I mentioned, the output looks fine when I include the image on just one of my layout pages, its when I try to add the image to the other pages that SAS crashes. I have opened a track with Tech Support to help.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.