Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
COBOL File status code 35

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: COBOL File status code 35
Reply with quote

Hi,

My prgram 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 prgram 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"


Thanks in advance.
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    Post subject: Reply to: COBOL File status code 35
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: 6970
Location: porcelain throne

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

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    Post subject: Reply to: COBOL File status code 35
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.

http://ibmmainframes.com/references/a27.html
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File compare, where file has header a... VINAY PALLELA SYNCSORT 8 Thu Nov 07, 2019 5:05 pm
No new posts OMIT first and last column of a pipe-... karthikb_itpro DFSORT/ICETOOL 1 Fri Nov 01, 2019 8:24 pm
No new posts COBOL -DB2 SQL code to have GROUP BY ... vinu78 DB2 21 Wed Oct 23, 2019 7:00 pm
No new posts How to place name of the file where t... danielgp89 SYNCSORT 18 Thu Oct 17, 2019 12:55 am
No new posts Need help in parsing record in VBA file guptae DFSORT/ICETOOL 4 Fri Oct 11, 2019 2:31 pm

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