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

Abend while opening a sequential file with return code -35


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

New User


Joined: 12 Feb 2007
Posts: 11
Location: mumbai

PostPosted: Mon Feb 26, 2007 2:02 pm
Reply with quote

getting abend while opening a sequential file with return code -35. unable to solve the abend. pls help
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 26, 2007 4:02 pm
Reply with quote

shivani_jha,
Could u please let us know which mode are u trying to open the data set, Cos if ya try to open an empty d/s in i-o mode u would get this error.


Thamilzan.
Back to top
View user's profile Send private message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Mon Feb 26, 2007 4:05 pm
Reply with quote

Hi,

Your question is not clear. You have got return code or file status while opening the file as 35. icon_confused.gif

Please paste the code and explain the query clearly.

Dinesh
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:08 pm
Reply with quote

35 - An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on a non-optional file that was not present.
Back to top
View user's profile Send private message
devidas-patil

New User


Joined: 08 Jan 2007
Posts: 54
Location: pune

PostPosted: Mon Feb 26, 2007 4:57 pm
Reply with quote

Hi
i think 35 is for optional sequential file is not found means there may be misake giving the assign name and the DDNAME in the JCL.
Back to top
View user's profile Send private message
devidas-patil

New User


Joined: 08 Jan 2007
Posts: 54
Location: pune

PostPosted: Tue Feb 27, 2007 10:10 am
Reply with quote

Hi Another exact reason is
The correct reason for the 35 is the file is empty but we trying to open the file in INPUT or EXTENT mode. that is not possible.

if file is empty we have to use only OUTPUT mode.
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 3
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top