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

How to identify end of file setting in a file


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

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Thu Feb 02, 2006 4:11 pm
Reply with quote

hai all ,

i need a clarification. suppose that i've a file. the file has only one record. will the end of file condition be set after the first successful read or the after the second attempt to read the file and identifying that there are no more records.


expecting responses..


gowtham
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Thu Feb 02, 2006 4:15 pm
Reply with quote

hi,

first read is success.

second read gives end of file
Back to top
View user's profile Send private message
Aji

New User


Joined: 03 Feb 2006
Posts: 53
Location: Mumbai

PostPosted: Fri Feb 03, 2006 3:05 pm
Reply with quote

Hi Gowtham,

Check the end of file condition after every read.
Regards

Aji Cherian
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Fri Feb 03, 2006 4:48 pm
Reply with quote

hi gowtham,


End of file will be determined by the file status variable that u declare in the select clause

for EOF the value would be 10 means record not found......


thanks
Balaji
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Fri Feb 03, 2006 5:47 pm
Reply with quote

Hi,
It will check the EOF status after each successful read. If not reach then it will continue otherwise it will stops reading the file.
Back to top
View user's profile Send private message
pratibha patre

New User


Joined: 02 Feb 2006
Posts: 2

PostPosted: Fri Feb 03, 2006 11:13 pm
Reply with quote

As there is only one record it will read the particular record and return back. correct me if i am wrong.
Back to top
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Fri Feb 03, 2006 11:44 pm
Reply with quote

Hi,
After successful read of the only one record and in next read the at end clause becomes true.

Regards,
Naga samba siva rao
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
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
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top