Thanks you for confirming that same code worked for you.

I added the DCB information explicitly for the output dataset and now it is
working fine.
RECFM=VB,LRECL=256

Cheers,

On Fri, Jan 13, 2012 at 05:17, Sambataro, Anthony (NIH/NBS) [E] <
[email protected]> wrote:

> I'm able to use that rexx code successfully, and can FTP it and access it
> as well. Here's my JCL for running the exec:
>
> //S1  EXEC PGM=IKJEFT01,DYNAMNBR=100,REGION=0M
> //SYSEXEC   DD DSN=xxxxx.CLIB,DISP=SHR
> //SYSTSPRT DD SYSOUT=A
> //SYSTSIN  DD  *
> %TXT2PDF 'ORIENT=LANDSCAPE,CC=YES,TITLE=TEST'
> //SYSUT1   DD DSN=input.dsn,DISP=SHR
> //SYSUT2   DD DSN=output.pdf,DISP=(NEW,CATLG),
> //         UNIT=FILE,RECFM=VB,LRECL=256,DSORG=PS,
> //         SPACE=(TRK,(99,99),RLSE)
>
>
> -----Original Message-----
> From: Donald Russell [mailto:[email protected]]
> Sent: Friday, January 13, 2012 1:35 AM
> To: [email protected]
> Subject: Creating PDF files
>
> Today I tried using this rexx code to create a PDF file:
> http://mmiller.myweb.uga.edu/pdf/
>
> The job then FTP the file (binary) to a web server. Adobe complains that
> the file is damaged and can't be read.
>
> The output from ikjeft01 shows no errors, all indications are the the PDF
> file was produced properly.
>
> If I d/l the file and look at it with Wordpad it does start with %PDF tag,
> so I'm pretty sure it was transferred from mvs properly.
>
> I tried using cc=yes and no but couldn't get past the adobe error. Adobe
> has no problems with other PDF files, it just doesn't like the file this
> rexx code produced. :-(
>
> Does any body have any suggestions? What software do others use to create
> PDF files on mvs?
>
> Thanks
>
> --
> Sent from Gmail Mobile/iPhone 5 Beta
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to