BookmarkSubscribeRSS Feed
SteveTX
Calcite | Level 5

I am trying to create a PDF file using ODS on a mainframe environment.  Below is the code.  The output is full of system characters

in the attachment.  Is there a way to get this to work?

 

 

 


ODS PDF FILE="Z8853.HLRPT.PDF"; PROC PRINT DATA=COMBINED NOOBS LABEL SPLIT='*'; VAR _GRP DAY_PRAF_MIN DAY_ARAF_MIN MTD_PRAF_MIN MTD_ARAF_MIN; FORMAT DAY_PRAF_MIN DAY_ARAF_MIN MTD_PRAF_MIN MTD_ARAF_MIN 5.1; TITLE 'MAINLINE FUEL METRICS'; /* LABEL DAY_PRAF_MIN = 'DAY*PRAF' DAY_ARAF_MIN = 'DAY*ARAF' MTD_PRAF_MIN = 'MTD*PRAF' MTD_ARAF_MIN = 'MTD*ARAF' _GRP=' * ' ; */ RUN; ODS PDF CLOSE;

 

 

1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi, something sticks in my mind from the early days of ODS PDF and you may need to open a track with Tech Support to verify.

An ODS PDF file is a proprietary binary file format invented by the Adobe company. In the early days of ODS, you couldn't create PDF files on the mainframe. But then you could, however, as shown in this document, on page 11 http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf -- you are advised "when moving the file to an ASCII host, then file will need to be moved as binary ."

The document was written for SAS 9.2 however, so perhaps checking with Tech Support is your best bet, unless someone with more recent mainframe experience has the answer.

cynthia

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