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

How can we move record pointer to the first record with out


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

New User


Joined: 26 Oct 2006
Posts: 50
Location: Chennai

PostPosted: Fri Dec 01, 2006 12:30 pm
Reply with quote

I have to read one flat file by sequential access (not relative file/index file) and do the update in that record if any matching record found. Once this is complete, again I need to read all the records from the first to do some process. Is it possible to move record pointer to the first record (with out closing and re opened) after it reaches the end of file?

Please give me the solution.

Thanks in advance,
Bharathi
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Dec 01, 2006 5:54 pm
Reply with quote

Hi

If it is a sequential file i think you have no other option than closing the file and re-opening it

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

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Sat Dec 02, 2006 10:59 am
Reply with quote

Quote:
question : are you using vsam sequential file or ordinary ps


I tink we can use relative byte addressing in esds sequential access files
Back to top
View user's profile Send private message
siva2
Warnings : 1

New User


Joined: 10 Feb 2006
Posts: 7

PostPosted: Tue Dec 05, 2006 3:17 pm
Reply with quote

hii.,
No other options , either re-open it or close it .
i think so .
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top