The SAS Output Delivery System and reporting techniques

Get rid out of the title The SAS system

Reply
Frequent Contributor
Frequent Contributor
Posts: 81

Get rid out of the title The SAS system

Hi
Iam creating a pdf file from a sas dataset.

Here is my coding, In my output I see The SAS system at the top of the every page. Can any one please help me out how to get rid out of the title The SAS system from the PDF file output.

options orientation = landscape;
options papersize = legal;
options ls = 150 pagesize=72;
options nodate nonumber;
options title='';
proc template;
define style styles.test;
parent = styles.printer;
style batch from output /
outputwidth = 100%
font_size=9.9pt
font_face = courier;
end;
run;
filename ftr "C:\DOWNLOAD\xxxxxx.TXT";

ods listing close;
ods pdf file = 'C:\DOWNLOAD\yyyyyyyy.PDF'
style=styles.test notoc;


data ftr;
infile ftr;
input @1 rec $char149.;
run;

data _null_;
infile ftr;
file print ps=72;
input;
put _infile_;

run;

ods _all_ close;

Thanks

Inpu
Super Contributor
Posts: 273

Re: Get rid out of the title The SAS system

Inpu
i don't understand really what's your goal with this kind of program : testing only?

About the question upon The SAS system
change your code into Title;

here a rewriting of your code with some modification mostly reordering what is ods and not
and an addition to show how to write directly to ods
(in my example the text of rec is short, but if it is really 149....)
(you can also avoid a a frame trace if you pursuit some template modification)
HTH
Andre

[pre]


proc template;
define style styles.test;
parent = styles.printer;
style batch from output /outputwidth = 100%
font_size=9.9pt
font_face = courier;
end;
run;
filename ftr "d:\temp\xxxxxx.TXT";
data _null_ ;
file ftr;
do i =1 to 149;put @145 "xxxxx";end;
run;
data ftr;
infile ftr;
input @1 rec $char149.;
run;

options orientation = landscape;
options papersize = legal;
options ls = 150 pagesize=72;
options nodate nonumber;
title ; <*************************************;

ods listing close;
ods pdf file = 'd:\temp\yyyyyyyy.PDF' style=styles.test notoc;

data _null_;
infile ftr;
file print ps=72;
input;
put _infile_;
run;

data _null_;
file print ods=(var=(rec));
set ftr;
put rec;
run;

ods pdf close;
ods listing;

[/pre]
Ask a Question
Discussion stats
  • 1 reply
  • 159 views
  • 0 likes
  • 2 in conversation