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
 

 

START on a empty indexed file

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

New User


Joined: 10 Dec 2007
Posts: 13
Location: Hyd

PostPosted: Thu May 07, 2009 5:36 pm    Post subject: START on a empty indexed file
Reply with quote

Hi All,
Please help me out on the below requirement.
I have empty indexed file(i have opened in i-o mode), can i use START on this file.

Thanks.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 07, 2009 5:53 pm    Post subject:
Reply with quote

When you say "empty" do you mean the file had a record written to it and deleted, or do you mean the file has been created but nothing has ever been written to it?

In the first case, you can use START but don't expect a 00 file status code since there's no data to position against. In the second case, you cannot do any reading of the file -- which I think (but haven't confirmed) means START either.
Back to top
View user's profile Send private message
Nsuma

New User


Joined: 10 Dec 2007
Posts: 13
Location: Hyd

PostPosted: Thu May 07, 2009 6:02 pm    Post subject: START
Reply with quote

I am working on Second case ......i creating file(if not existed) by opening in i-o mode and using START command....START is for, if the file already exist.....i need use START to read the file. Can use START or not at this.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 07, 2009 6:24 pm    Post subject:
Reply with quote

I just deleted and defined a VSAM KSDS file, did not load any data into it, and attempted to use it in a COBOL program. The OPEN I-O got a 35 file status while the START got a 47 file status. Once I loaded the file with data, I got 00 file status codes for both operations.

I reiterate: do not attempt to OPEN I-O or START a VSAM file unless you've put data into it already.
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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