Hi,
I am writing a before subroutine to read a sequential file however under certain circumstances I need to reset the pointer to the top of the file. Is there any way to do this or do I need to close the file and re-open it?
Thanks
Brad
Seq file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
Seek filevariable, offset, position
Then
* statements if Seek successful
End
Else
* statements if Seek failed
End
Code: Select all
Seek filevariable,0,1 ...
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.