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: 8117
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: 8117
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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