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
 

 

Return Code 16 while reading an online file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Mon Apr 23, 2007 7:19 pm    Post subject: Return Code 16 while reading an online file
Reply with quote

Hi,

I'm working on a change to our existing CICS program. For this change, I have to read a VSAM file (defined in the online region). Although this VSAM file is being read in the program already, I want to use another read because the records that I want to read is different from what is currently being read.

i.e,

EXEC CICS READ (File1, Record type1)
.
.
.
EXEC CICS READ (File1, Record type2)
.
.
.
EXEC CICS READ (File1, Record type1)

Note: File1 is a multiple layout VSAM dataset

In the above example, the first 2 reads already exists and I'm introducing the last read. Even though the compilation goes fine, the program abends during execution with the RC 16. From what I see, RC 16 means "Too many device files open".

I'm not sure why this is happening. But somehow I have to have the new read statement.

Could someone help? Thanks.
Back to top
View user's profile Send private message

vmj

New User


Joined: 16 May 2006
Posts: 16
Location: Philippines

PostPosted: Wed Apr 25, 2007 8:20 am    Post subject: Re: Return Code 16 while reading an online file
Reply with quote

what do you mean by mutiple layout VSAM?

RC 16 is invalid IO, that could mean many things, not only in opening files...

are you sure you're only reading the file? have you tried tracing it?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Apr 25, 2007 2:46 pm    Post subject:
Reply with quote

Post the full text of the EC READ.
Post the EIBRESP and EIBRESP2.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


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