Joined: 12 Jul 2008 Posts: 1 Location: São Paulo - Brazil
I need to write a cobol program to read and treat all JCL that are in a PO file. I wrote the program to do it, but it is abending with I/O error.
Can same one help me how to specify the SELECT clause for this kind of file?
Joined: 23 Nov 2006 Posts: 8729 Location: 221 B Baker St
Hello Rildo and welcome to the forums,
If you post 2 or 3 sample members that will be "input" to your program and the output you want when those members are processed someone may have a suggestion.
If will also help if you post your jcl and the error message you are currently dealing with.
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
Rildo Ferreira wrote:
I need to write a cobol program to read and treat all JCL that are in a PO file. I wrote the program to do it, but it is abending with I/O error.
Can same one help me how to specify the SELECT clause for this kind of file?
Dare I ask what the treatment is that could not ordinarily be dealt with by existing functionality such as an ISPF edit macro ?
I'm no COBOL programmer but I'm not sure you can specify organisation of PO in your SELECT statement, so I believe you need to specify each member on a separate DD statement in your JCL.