Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File Stauts 92 with member of PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sandip_mainframe
Warnings : 2

New User


Joined: 20 Sep 2006
Posts: 61
Location: pune

PostPosted: Fri Jun 10, 2016 12:06 pm    Post subject: File Stauts 92 with member of PDS
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Fri Jun 10, 2016 1:12 pm    Post subject: Reply to: File Stauts 92 with member of PDS
Reply with quote

Quote:
Any idea why it is happening ?

not with the info You posted icon_evil.gif
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 546
Location: The Universe

PostPosted: Fri Jun 10, 2016 3:17 pm    Post subject:
Reply with quote

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
View user's profile Send private message
sandip_mainframe
Warnings : 2

New User


Joined: 20 Sep 2006
Posts: 61
Location: pune

PostPosted: Wed Jun 15, 2016 11:13 am    Post subject:
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1742
Location: NY,USA

PostPosted: Thu Jun 16, 2016 2:56 am    Post subject:
Reply with quote

Really ? What was junk ? icon_confused.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us