View previous topic :: View next topic
|
Author |
Message |
comp_ashok
New User
Joined: 30 Nov 2007 Posts: 15 Location: India
|
|
|
|
Hi all,
I want to read a input FILE FILE1 sequentially. But after EOF of FILE1 I want to reset the location of file-pointer such that when I do next GET it gives me 1st record insted of EOF.
FILE FILE1
GET FILE1
IF EOF FILE1
* CODE/ KEYWORD TO RESET THE LOCTION OF POINTER TO START OF FILE
END-IF |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Use the POINT statement.
O. |
|
Back to top |
|
|
comp_ashok
New User
Joined: 30 Nov 2007 Posts: 15 Location: India
|
|
|
|
Hi ofer71,
I may use POINT with VSAM and ISAM file. But in this case it is a simple PS. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why do you want to point back to the beginning of the file?
If this is an attempt to re-read the file multiple timeds, it is most likely a bad design decision.
If you explain what you actually need to accomplish, we may be able to offer more usable alternatives. |
|
Back to top |
|
|
|