How to limit the number of times the header prints?

296 views Asked by At

Every time that I print out a job from tso mainframe using SAS I get something like this:

Obs Name Amount
1   John  10
2    Ben  20

Obs Name Amount
3    Jen  15
4    Pat  20

Basically, I get the headers multiple time in the output. I'm using:

OPTIONS NODATE NONUMBER;
TITLE1; TITLE2;

PROC PRINT DATA=DATASET;
RUN;

What else should I add to get a better output?

2

There are 2 answers

3
Joe On BEST ANSWER

The titles are repeated once per page normally; a page is controlled by options ps=.

options ps=100;

would give you 100 line pages, for example.

0
Bill Woodger On

It is unclear what you are trying to do. You have TITLE1 and TITLE2, so it looks like you are trying to suppress two title lines (which may not be there even).

If you want to suppress all column headings, you can't do it with PRINT. REPORT, on the other hand, has an option to suppress them.

If you can't use REPORT, you could use DEFINE to set the column titles to blanks, but you'd still have the lines.

I don't know SAS (about three minutes of internet searching) but there may be other ways to do what you want if you just want an output file.

There is lots of documentation available, easily located.