- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-16-2024 07:55 AM
(536 views)
data check;
input name $ age;
cards;
abc 10
def 11
ghj 23
kld 45
;
run;
ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
columns name age;
define name / "Name";
define age / "Age";
/*if age is greater than 19 */
/*then i want body of text says Age is greater than 19 you can enter */
run;
ods pdf close;
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
proc format;
value agef 19-high='Age is greater than 19';
run;
ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
columns name age;
define name / "Name";
define age / "Age" format=agef.;
run;
ods pdf close;
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I don't want in to the table
I want text in the body of the report like below !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
columns name age;
define name / "Name";
define age / "Age";
run;
proc sql noprint;
select max(age) into :maxage from check;
quit;
%if &maxage>19 %then %do;
ods escapechar='^';
ods text ="^{style [just=c]}Age is greater than 19" ;
%end;
ods pdf close;
--
Paige Miller
Paige Miller