View previous topic :: View next topic
|
Author |
Message |
sandip_mainframe Warnings : 2 New User
Joined: 20 Sep 2006 Posts: 63 Location: pune
|
|
|
|
Hi,
I am opening file and reading it later in the program, when I use flat file (PS file with record length 80) programs works successfully. But when I use member of PDS (record length 80) as input instead of PS file , it gives file status 92 in open statement.
Any idea why it is happening ?
Thanks,
Sandip |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
Any idea why it is happening ? |
not with the info You posted |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
As Mr. Sorichetti says, you have not provided enough information. I am guessing here, but I'm betting the DD statement that specifies the data set name does not specify the member name, for example -
Code: |
//INPUTDD DD DSN=SYS1.MACLIB(DCB),DISP=SHR |
to read the DCB member in SYS1.MACLIB.
With z/OS data management, if you do not specify a member name, the system assumes your program is trying to read the directory, which is not RECFM=FB, LRECL=80, so the I/O is failing with a wrong length record error.
Correct the JCL, and your program should run OK. |
|
Back to top |
|
|
sandip_mainframe Warnings : 2 New User
Joined: 20 Sep 2006 Posts: 63 Location: pune
|
|
|
|
Hi Enrico And Steve thanks for your replies, I am able to resolve to the issue. Issue was that data was not copied properly into PDS members there was some junk data and because of which program was abending with file status 92.
Thanks,
Sandip |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Really ? What was junk ? |
|
Back to top |
|
|
|