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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 737 views
  • 0 likes
  • 2 in conversation