Page 1 of 1

Several PDF files that I need to merge , and then to print

PostPosted: Thu Jul 13, 2017 2:10 am
by mad348908
i am trying to convert the PDF stream input to a AFP data stream output using the below JCL:
                       
//TRANSFRM EXEC PGM=AOPBATCH,                                
//             PARM='/PDF2AFP -O //DD:OUTPUT //DD:INPUT'    
//INPUT   DD  DISP=SHR,DSN=TS@0NM.PDF                        
//OUTPUT   DD   DSN=TS@0NM.AFP,DISP=(NEW,CATLG,DELETE),      
//   DCB=(RECFM=FB,LRECL=,BLKSIZE=0),SPACE=(CYL,(1,1))      
//STDOUT   DD   SYSOUT=*                                    
//STDERR   DD   SYSOUT=*                                    
//STDENV   DD   *                                            
 


but getting error as below:
AOP003E PDF2AFP: EDC5129I No such file or directory., errno2=53b006c


Coded

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 2:15 am
by Akatsukami
Do not append posts to threads that have been quiescent for nine years. Do use Code tags where -- as in this case -- alignment is significant.

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 2:27 am
by NicC
The error suggests that you have not specified the paramterfes correctly/ Have you double checked against the manual and your system. Have yuu asked one of your colleagues to double check your JCL for you? Do not be embarassed - chances are that they have made a similar mistake before!

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 2:34 am
by mad348908
I am following the below link:

<https://www.ibm.com/support/knowledgecenter/SSLTBW_1.13.0/com.ibm.zos.r13.aopta00/ci41pxmp.htm>

this is the first time we are trying to transform the PDF to AFP, currently it is done in the JAVA but we want to do it in MF as the processing time JAVA is too much

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 8:30 pm
by Robert Sample
Check the Unix directory for the file name. Unix is case sensitive so PDF2AFP is NOT the same file as pdf2afp, nor is -O the same as -o. And you appear to be telling AOPBATCH that the PDF2AFP file is in the root directory (or whatever the home directory for the user id associated with the batch job); usually I would expect such a file to be in a subdirectory such as /usr/lpp/Printsrv/bin/ -- so find out which user id the job is running under and what that home directory is.

The error message is specifically telling you that the system did not find PDF2AFP, either due to upper case / lower case or because the wrong directory was searched.

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 11:03 pm
by mad348908
Hi Robert, thanks for the update.
That was the mistake i was having so i had changed the PDF2AFP to pdf2afp, but i am having an issue with the Unix not able to find the AOPD.CONF in the /etc/Printsrv/, when i searched in to my system directory of /etc/Printsrv/ i am not seeing the AOPD.CONF file.

Can i configure the file myself and put it in the directory?

Re: Several PDF files that I need to merge , and then to pri

PostPosted: Thu Jul 13, 2017 11:42 pm
by Robert Sample
Follow the steps listed here: https://www.ibm.com/support/knowledgece ... teconf.htm to get everything right. You may need a site support person to do this unless you have UID of 0 (which would be VERY rare for applications programmers -- usually that's a system programmer access only, and not for all system programmers at that). And note if you build /etc/Printsrv/AOPD.CONF you will have problems since the software is looking for /etc/Printsrv/aopd.conf instead. You may not have access to the /etc directory as it is usually set to 755 permissions to prevent unauthorized writes.