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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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