18%mp_ds2pdf(sashelp.class, outref=pdf1
22%mp_ds2pdf(sashelp.class, outref=pdf2, maxobs=3
27proc sort data=sashelp.class out=work.classsex;
31%mp_ds2pdf(work.classsex, outref=pdf3, by=SEX
32 ,title=By group listing)
35%mp_ds2pdf(sashelp.class, outref=pdf4, pagenum=PAGEOF)
38%mp_ds2pdf(sashelp.class, outref=pdf5, pagenum=NO)
44%mp_ds2pdf(sashelp.class, outref=pdf6
49 infile pdf1 recfm=f lrecl=8 obs=1;
52 call symputx(
'sigfull',substr(sig,1,5),
'l');
56 infile pdf3 recfm=f lrecl=8 obs=1;
59 call symputx(
'sigby',substr(sig,1,5),
'l');
66 s1=finfo(fid,
'File Size (bytes)');
69 s2=finfo(fid,
'File Size (bytes)');
72 s4=finfo(fid,
'File Size (bytes)');
75 s5=finfo(fid,
'File Size (bytes)');
78 s6=finfo(fid,
'File Size (bytes)');
80 call symputx(
'size1',s1,
'l');
81 call symputx(
'size2',s2,
'l');
82 call symputx(
'size4',s4,
'l');
83 call symputx(
'size5',s5,
'l');
84 call symputx(
'size6',s6,
'l');
90 length sigfull sigby $5;
91 sigfull=symget(
'sigfull');
92 sigby=symget(
'sigby');
93 call symputx(
'issigfull'
94 ,ifc(sigfull=
'%PDF-',
'Y',
'N'),
'l');
95 call symputx(
'issigby'
96 ,ifc(sigby=
'%PDF-',
'Y',
'N'),
'l');
100 iftrue=(
"&issigfull"=
"Y"),
101 desc=Checking the file starts with a PDF signature,
102 outds=work.test_results
105 iftrue=(
"&issigby"=
"Y"),
106 desc=Checking a by group report is also a PDF,
107 outds=work.test_results
110 iftrue=(&size2 < &size1),
111 desc=Checking maxobs reduces the report,
112 outds=work.test_results
115 iftrue=(&size4 > &size5),
116 desc=Checking the page total is written to the page,
117 outds=work.test_results
120 iftrue=(&size6 = &size1),
121 desc=Checking a caller escape character does not change the report,
122 outds=work.test_results