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
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
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 I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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