Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us