Hi All,
I am tryinh to create a report student's grade with two image at the top (school logo) and bottom (signature). Can you please suggest me if I should go for PROC REPORT or PROC TABULATE or any other option. I would appreciate if you can show me a sample code/link from internet/sas community page. Thanks.
Well, you should be able to do it with eiher. My preference is to always create a dataset which looks like the output required then proc report that quite basically as then you can validated that dataset and store it etc. but that is personal preference. Look at the SAS documents on the two, and try some things out, see what your happy with.
Here is an example.
data class;
set sashelp.class;
run;
proc sort data=class;by name sex;run;
ods _ALL_ CLOSE;
ods pdf file='/folders/myfolders/xx.pdf';
ods escapechar='~';
options nobyline nodate;
title1 '~S={preimage="/folders/myfolders/temp.png"}';
title2 'Student Report';
title3 "StudenName: #byval1 Sex: #byval2";
proc report data=class nowd;
by name sex;
column name sex age weight height;
define name/noprint;
define sex/noprint;
run;
footnote1 '_________________';
footnote2 'Signature';
ods pdf close;
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.
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.