The SAS Output Delivery System and reporting techniques

z/OS: imbed jpeg in pdf (proc report and ods)

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 85
Accepted Solution

z/OS: imbed jpeg in pdf (proc report and ods)

when I create a pdf on sas pc I use this syntax:

 

ODS escapechar='^';

title j=R "^S={preimage='z:\reports\pics\AXA_HEAD.jpeg'} " ;

 

I want to move this to mainframe:

* how to transfer jpeg file

* what is the syntax of the title statement then

 

GreetZ,

Herman


Accepted Solutions
Solution
‎10-17-2016 05:39 AM
SAS Super FREQ
Posts: 8,645

Re: z/OS: imbed jpeg in pdf (proc report and ods)

Hi: It depends on if your mainframe has a Unix partition or not. If there is a Unix partition, then you have a Unix name like:
/usr/reports/images/AXA_HEAD.jpeg

but, if it is an EBCDIC mainframe system, with catalogued datasets, then generally, the name is:
DSN=XXXYYY.ONELEV.TWOLEV.THREELEV or
if in a PDSE
DSN=XXXYYY.PDSELEV.MORE(AXA_HEAD)

but I am not sure how you would transfer the JPEG file to the mainframe (transferring as binary sounds like a good place to start) or if the ODS ESCAPECHAR will work with PDF on the mainframe. It might also depend on the version of SAS that is running on the mainframe, too.

This might be a question for Tech Support.

cynthia

View solution in original post


All Replies
Super User
Posts: 1,080

Re: z/OS: imbed jpeg in pdf (proc report and ods)

[ Edited ]

I have never worked on Z/OS, but you may try:

 

1) copy the jpeg file by FTP binary to the MF.

 

2) Addapt jpeg file name on SAS statement, without changing the sysntax.

 

With hope it will work, depending on SAS installation on Z/OS.

Solution
‎10-17-2016 05:39 AM
SAS Super FREQ
Posts: 8,645

Re: z/OS: imbed jpeg in pdf (proc report and ods)

Hi: It depends on if your mainframe has a Unix partition or not. If there is a Unix partition, then you have a Unix name like:
/usr/reports/images/AXA_HEAD.jpeg

but, if it is an EBCDIC mainframe system, with catalogued datasets, then generally, the name is:
DSN=XXXYYY.ONELEV.TWOLEV.THREELEV or
if in a PDSE
DSN=XXXYYY.PDSELEV.MORE(AXA_HEAD)

but I am not sure how you would transfer the JPEG file to the mainframe (transferring as binary sounds like a good place to start) or if the ODS ESCAPECHAR will work with PDF on the mainframe. It might also depend on the version of SAS that is running on the mainframe, too.

This might be a question for Tech Support.

cynthia
Post a Question
Discussion Stats
  • 2 replies
  • 309 views
  • 1 like
  • 3 in conversation