|
View previous topic :: View next topic
|
| Author |
Message |
kanchan Agrawal
New User
Joined: 03 Dec 2007 Posts: 4 Location: india
|
|
|
|
| How can i close physical sequential file in easytrieve? |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If you have "CA-Easytrieve Plus Application Guide", you might want to take a look at chapter 9, "File Processing". It says that CA-Easytrieve Plus automatically OPENs and CLOSEs all files.
O. |
|
| Back to top |
|
 |
kanchan Agrawal
New User
Joined: 03 Dec 2007 Posts: 4 Location: india
|
|
|
|
hi ofer71
i have go through that guide. according to that, files are closed at the end of activity. Actually i want to close the file prior to end of activity.
i have to read again the file from starting. For that either i have to set the pointer at starting(but it can be done only for vsam file, not for ps file) or close the file(so that reading start from first record) |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If you describe the requirement (why you need to "start over" at the beginning of the file), someone may have a suggestion. |
|
| Back to top |
|
 |
G-Johnson
New User
Joined: 12 Mar 2007 Posts: 20 Location: USA
|
|
|
|
| Multiple jobs can exist within the same program. Any info from a prior job can be save in working storage. |
|
| Back to top |
|
 |
kanchan Agrawal
New User
Joined: 03 Dec 2007 Posts: 4 Location: india
|
|
|
|
Thanks for all replies.
My problem is solved. Now I am using the 'sort' to make the file in table format. Then use the 'search' in table. so no need of reading file again and again. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
From the initial request, i was fairly sure of why the re-open was needed.
Good to hear that you have a far more acceptable solution.
| Quote: |
| so no need of reading file again and again. |
This is almost always the worst possible choice - it can make performance measurement and capacity planning people quite livid  |
|
| Back to top |
|
 |
Premdev
New User

Joined: 05 Feb 2008 Posts: 24 Location: Coimbatore
|
|
|
|
| Can i have a physical file read and processed in easytrieve without mention it in job statements? |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
| Quote: |
| Can i have a physical file read and processed in easytrieve without mention it in job statements |
Yes you can do it. |
|
| Back to top |
|
 |
|
|