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
 

 

File status - 35

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
RAJA-RAJA

New User


Joined: 11 Sep 2009
Posts: 10
Location: chennai

PostPosted: Thu Jun 17, 2010 1:03 pm    Post subject: File status - 35
Reply with quote

Iam getting file status - 35 on opening the PS file in input mode. The DD name in the JCL is also correct. Please advice on what may be the cause.

Thanks.

JCL : (1 record is present in input file)
//DD010 DD DSN=Hxxx.B.GExxx.INPUT.NEW.B,
// DISP=SHR

pgm:
SELECT DEFA-IN ASSIGN TO UT-S-DD010
FILE STATUS IS WS-DEFA-IN-STATUS.
::

FD DEFA-IN
RECORDING F
LABEL RECORD STANDARD
RECORDING MODE F.
BLOCK 0.
01 GEDKDEFA-REC.
05 DEFA-NR-DOSS-077DOSS PIC X(20).
05 DEFA-NR-SDOS-077SDOS PIC X(20).
05 DEFA-CO-CLASS-077SDOS PIC X(02).
05 DEFA-NR-DEBIT-ACCOUNT PIC X(14).
05 FILLER PIC X(24).
Back to top
View user's profile Send private message

Pravesh

New User


Joined: 30 Jul 2009
Posts: 32
Location: Gurgaon

PostPosted: Thu Jun 17, 2010 1:25 pm    Post subject: Reply to: File status - 35
Reply with quote

how come DD name more then 8 bytes UT-S-DD010 . It can be max of 8 in length(in JCL and pgm).

Thanks,
Pravesh
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 17, 2010 1:49 pm    Post subject:
Reply with quote

Pravesh wrote:
how come DD name more then 8 bytes UT-S-DD010 . It can be max of 8 in length(in JCL and pgm).
OK, so I haven't played COBOL for over 30 years, but doesn't the JCL DD name to be allocated start after UT-S-, so is restricted to 8 bytes from that point onward.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jun 17, 2010 3:50 pm    Post subject:
Reply with quote

Expat is corect - UT-S -> is "an old way of coding in cobol", wehre in you tell the system what kind of device the program is going to deal with. So yes, as far as, DD-name in COBOL progrm is concerned - that's correct.

I just hope the file exist - status-code 35 asks for this. Also, your choice of DD-name is not that user-friendly -- are you sure, you've not used alphabet-O instead of number-0 in DD statement or vice-versa?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jun 17, 2010 4:05 pm    Post subject:
Reply with quote

you receive a 35 on open when
  • you coded your program and jcl accurately and the physical file does not exist
  • you have not coded your program and jcl accurately and the file exists


dd name is not same in jcl and pgm
dsn is inaccurate
file does not exist
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 17, 2010 7:46 pm    Post subject:
Reply with quote

Hello,

Remove the FILE STATUS and note which error/abend happens. . .
Back to top
View user's profile Send private message
icemanroh

New User


Joined: 23 Aug 2008
Posts: 25
Location: Mumbai

PostPosted: Wed Jun 23, 2010 4:48 pm    Post subject: Reply to: File status - 35
Reply with quote

Code:
FD DEFA-IN
RECORDING F
LABEL RECORD STANDARD
RECORDING MODE F.


Why have u declared Recording mode twice?
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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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