IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Return Code 16 while reading an online file


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Apr 25, 2007 2:46 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top