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 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: 8151
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: 8151
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

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