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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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