Hello Unison, Thank you for your comments and code. It didn't work out quite as expected though. The code that I used is below. As you can see, when I used a column length of 150, I get the error that the length needs to be between 1 and 97 data combine;
length c1 c2 $150;
c1= cats('^S={width=8.5cm just=center preimage="', "&png_dest", '\srsthirdt1.png"}');
c2= cats('^S={width=8.5cm just=center preimage="', "&png_dest", '\srsthirdt2.png"}');
output;
c1= cats('^S={width=8.5cm just=center preimage="', "&png_dest", '\srsthirdt3.png"}');
c2= cats('^S={width=8.5cm just=center preimage="', "&png_dest", '\srsthirdt4.png"}');
output;
run;
ods escapechar='^';
proc report data=combine nowindows style=[rules=none frame=void cellpadding=0] list;
columns c1 c2;
define c1-c2 /display ' ';
run; **This is from the log file: PROC REPORT DATA=WORK.COMBINE LS=97 PS=54 SPLIT="/" CENTER ; COLUMN ( c1 c2 ); DEFINE c1 / DISPLAY FORMAT= $150. WIDTH=150 SPACING=2 LEFT " " ; DEFINE c2 / DISPLAY FORMAT= $150. WIDTH=150 SPACING=2 LEFT " " ; RUN; ERROR: The width of c1 is not between 1 and 97. Adjust the column width or line size. NOTE: This affects LISTING output. So, I try changing the length to 97 and get a different error with 'cats' function. Please see below: WARNING: In a call to the CATS function, the buffer allocated for the result was not long enough to contain the concatenation of all the arguments. The correct result would contain 123 characters, but the actual result might either be truncated to 97 character(s) or be completely blank, depending on the calling environment. The following note indicates the left-most argument that caused truncation. NOTE: Argument 2 to function CATS('^S={width=8.'[12 of 38 characters shown],'''C:\Users\lm'[12 of 68 characters shown],'\srsthirdt1.'[12 of 17 characters shown]) at line 143 column 9 is invalid. Do you think it is due to the location I'm saving the graphs at? Thanks!
... View more