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



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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

Postby mad348908 » Thu Jul 13, 2017 2:10 am

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
mad348908
 
Posts: 3
Joined: Wed Jul 05, 2017 9:36 pm
Has thanked: 2 times
Been thanked: 0 time

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

Postby Akatsukami » Thu Jul 13, 2017 2:15 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day

These users thanked the author Akatsukami for the post:
mad348908 (Thu Jul 13, 2017 2:19 am)
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby NicC » Thu Jul 13, 2017 2:27 am

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!
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby mad348908 » Thu Jul 13, 2017 2:34 am

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
mad348908
 
Posts: 3
Joined: Wed Jul 05, 2017 9:36 pm
Has thanked: 2 times
Been thanked: 0 time

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

Postby Robert Sample » Thu Jul 13, 2017 8:30 pm

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.

These users thanked the author Robert Sample for the post:
mad348908 (Thu Jul 13, 2017 11:07 pm)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby mad348908 » Thu Jul 13, 2017 11:03 pm

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?
mad348908
 
Posts: 3
Joined: Wed Jul 05, 2017 9:36 pm
Has thanked: 2 times
Been thanked: 0 time

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

Postby Robert Sample » Thu Jul 13, 2017 11:42 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post