View previous topic :: View next topic |
Author |
Message |
Nithyama Beginner
Joined: 28 Dec 2006 Posts: 3 Topics: 3
|
Posted: Sat Apr 28, 2007 1:37 am Post subject: Reading VSAM file |
|
|
How to read the VSAM sequential file from the beginning of the record?
I have read upto 5 th record. but i need to read the file again from the first record. could anyone pls help me? |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Tue May 01, 2007 1:33 am Post subject: |
|
|
I think closing and opening the file again should do it. |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Wed May 02, 2007 2:25 am Post subject: |
|
|
Quote: | How to read the VSAM sequential file from the beginning of the record? |
I would guess from your description of the file above, that it is an ESDS rather than a KSDS. If this is the case then you have to close and reopen the file as said above.
If there are unique keys for the file, then perhaps this can be achieved using RANDOM access, or even overlaying the ESDS with an AIX. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
blitz2 Beginner

Joined: 23 Jan 2007 Posts: 84 Topics: 14
|
Posted: Wed May 02, 2007 7:31 am Post subject: |
|
|
I think you should consider using tables, if you do not wish to lose the file pointer on the 5th record
________
California dispensary
Last edited by blitz2 on Thu Mar 10, 2011 5:29 pm; edited 1 time in total |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed May 02, 2007 8:00 am Post subject: |
|
|
beats me why you should do this but - if it always the 5th record then why not just store the first (or first four) record(s) in working storage so that it/they is/are there ready and waiting? But what happens when you read the 5th record the second time around? Repeat the process? Big loop! _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Wed May 30, 2007 5:38 am Post subject: |
|
|
Can you move Low values to the key and make it point to the first record.I am not sure about this
I haerd it from one of my collegue's
Please let me know if this can be done or not |
|
Back to top |
|
 |
|
|