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
Diamond | Level 26
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-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 save with the early bird rate—just $795!

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