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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 989 views
  • 0 likes
  • 2 in conversation