BookmarkSubscribeRSS Feed
mlogan
Lapis Lazuli | Level 10

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.

 

POG Image.jpg

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

Ksharp
Super User
It is more suited for proc report . I think Cynthia is good at making report. Maybe She could give you some advice.
Ksharp
Super User

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;

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
  • 3 replies
  • 724 views
  • 1 like
  • 3 in conversation