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
 

 

OPEN VSAM in I-O mode, return code 35

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
abby.qiong.zhang

New User


Joined: 07 Jun 2012
Posts: 26
Location: China

PostPosted: Sat Jun 08, 2013 12:26 pm    Post subject: OPEN VSAM in I-O mode, return code 35
Reply with quote

The VSAM file is empty, i used I-O mode to open it, but received return code as 35. As I know, 35 means the file doesn't exist, but it does exist only empty, is any one have any idea?

Here's my two VSAM datasets
Code:

NA39660.PERM.B00502D.VSAM       
NA39660.PERM.B00502D.VSAM.DATA 
NA39660.PERM.B00502D.VSAM.INDEX
NA39660.PERM.B00503D.VSAM       
NA39660.PERM.B00503D.VSAM.DATA 
NA39660.PERM.B00503D.VSAM.INDEX
Back to top
View user's profile Send private message

abby.qiong.zhang

New User


Joined: 07 Jun 2012
Posts: 26
Location: China

PostPosted: Sat Jun 08, 2013 1:13 pm    Post subject: Reply to: OPEN VSAM in I-O mode, return code 35
Reply with quote

Issue has been fixed, need to initialize the files, put in some test data.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Sat Jun 08, 2013 6:33 pm    Post subject:
Reply with quote

Good to see that you have solved it. Remember that for VSAM data sets, there is a difference between an "empty" data set (that has ever held data) and one with no records in it.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Jun 10, 2013 4:03 pm    Post subject:
Reply with quote

Do a search for VSAMINIT on the internet and you'll find a program to download that does initialises of VSAM files in different ways. For example it can insert and then delete a record in what was an empty VSAM file and this 'initialises' it so CICS can open it OK.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Jun 10, 2013 4:46 pm    Post subject: Reply to: OPEN VSAM in I-O mode, return code 35
Reply with quote

VSAMINIT source:
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Mon Jun 10, 2013 6:02 pm    Post subject:
Reply with quote

The file status 35 does NOT mean "the file doesn't exist" -- from the Enterprise COBOL Language Reference manual:
Quote:
An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on
a nonoptional file that was not present.
What the 35 tells you is that a required file does not have a DD statement present in the JCL. Possible reasons for this include:
1. file does not exist (although this usually generates a JCL error)
2. DD name in JCL is different from DD name in COBOL
3. opening a never-used VSAM file in INPUT or I-O mode
4. attempting to open a VSAM file defined with an alternate index specified with UPGRADE, but not having a DD statement for the alternate index path
5. DD name is missing in the JCL
etc
etc
etc
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm


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