View previous topic :: View next topic |
Author |
Message |
Deaf Smith Beginner
Joined: 22 Jul 2008 Posts: 18 Topics: 12
|
Posted: Wed Oct 08, 2008 3:35 pm Post subject: Ways to get JCL information into a cobol program |
|
|
I need to find a way to get error information into a cobol PGM.
EZZ9830I QA885BC FTP failed - Cmd = 7(cd) Reply = n/a EX FIX RC = 0012
I need the error 7 (or 27 or whatever the error is) as well as the fixed RC (12 in this case.)
Is there reserved words or a call or parm for this?
Thanks! _________________ Deaf |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Oct 08, 2008 4:08 pm Post subject: |
|
|
To see error messages, you can
1)review the whole SYSLOG on some regular schedule
2)capture the JOBLOG (or SYSOUTs) from individual jobs via SAR or batch SDSF or other method
Does this help? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Oct 08, 2008 4:15 pm Post subject: |
|
|
You could write the SYSOUT from the ftp step to a dataset, and then read that dataset as input in your COBOL pgm. You'd have to play around with the DCB attributes. The RECFM could be VB or FB, and the LRECL will most likely be 121 or 133. |
|
Back to top |
|
 |
|
|