BookmarkSubscribeRSS Feed
OS2Rules
Obsidian | Level 7
Hi All:

I have a report that I am trying to print in landscape with a batch job (submitted by Autosys).

No matter what I do, I can't get the orientation to be landscape - it is always portrait. If I run the job interactively, no problem - I can change the orientation to whatever I want.

Basically I do the following:


DM 'DLGPRTSETUP ORIENT=landscape NODISPLAY';

option papersize=letter orientation=landscape pageno=1 nodate;
option sysprintfont=("SAS Monospace" 8);
options printerpath = Postscript;

filename report printer "fully qualified network printer name";

proc printto print=report;
run;

PROC PRINT DATA=REPTDATA UNIFORM NOOBS SPLIT='*';
--- etc.---


Also - the font size won't change either (which I can do interactively).

Any help would be greatly appreciated.
1 REPLY 1
Ross
Calcite | Level 5
DM commands won't run in batch mode and are likely blowing up the program. The regular SAS options should work for setting the orientation.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 722 views
  • 0 likes
  • 2 in conversation