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

COBOL File Status Error: 35


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nileshyp

New User


Joined: 22 Jun 2005
Posts: 65
Location: Mumbai

PostPosted: Fri Mar 04, 2011 2:11 pm
Reply with quote

My program is abending as I am getting file status code of 35 in called program. When I checked the file looks to be present. I am not sure why
I am not sure why i am getting the error as dataset is also opened as INPUT in called program which is perfectly alright.
Kindly advise if there is any workaround.

explained above scenario in detail as below :

My program is PROG A

PROG A calling PROG B for getting some info
PROG B has dataset called "ACTRNGIP"
When I run my program ie. PROG A
I get below error display
"ACTRNGIP - OPEN PROBLEM FILE STATUS = 35"
Back to top
View user's profile Send private message
sureshmanokar

New User


Joined: 21 Dec 2010
Posts: 11
Location: Bangalore

PostPosted: Fri Mar 04, 2011 2:20 pm
Reply with quote

Is it a VSAM file? If it is a VSAM the file may be EMPTY. The File status will be '35' even if the program tries to access a empty file.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Mar 04, 2011 2:49 pm
Reply with quote

File Status Codes

Quote:

An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on a non-optional file that was not present.


you tried to open an file that does not exist.
simple as that.
proof your
jcl dd statements,

or if you are using dynamic allocation
check on your file name parm.

I don't think you will get a 35 on an open for an empty vsam.
you will probably recieve an error on a read of an empty vsam.
Back to top
View user's profile Send private message
sureshmanokar

New User


Joined: 21 Dec 2010
Posts: 11
Location: Bangalore

PostPosted: Fri Mar 04, 2011 3:22 pm
Reply with quote

Yeah, i accept it. I thought he may be correct eith the DD name.

FILE STATUS 35:-
ATEMPTING TO OPEN AN EMPTY FILE IN INPUT OR I/O MODE. DD NAME
IS MISSING OR WRONGLY GIVEN.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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 Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top