View previous topic :: View next topic |
Author |
Message |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Thu Nov 20, 2008 4:09 pm Post subject: |
|
|
kavi,
What about the access method coded in the FD of the vsam file? |
|
Back to top |
|
 |
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Thu Nov 20, 2008 4:37 pm Post subject: |
|
|
Kolusu,
Please refer the FD section for this.
Code: |
SELECT XXXXXXXX ASSIGN TO XXXXX
ORGANIZATION IS INDEXED
RECORD KEY IS
XXX-2000-XXXXXXXX-KEYS
ACCESS IS DYNAMIC
FILE STATUS IS STATUS-CODE.
|
Thanks,
Kavi |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Fri Nov 21, 2008 10:04 am Post subject: |
|
|
You need to capture the value of the key immediately before the READ and display it, or better yet, write it to a temp file. When you get a not found and issue the START/READ, and the READ returns a record, display/write the key from that too.
One other thing. Are you rebuilding the key after you CLOSE and the OPEN the VSAM file? Also, try changing the START to use = rather than >=.
At this point, you've sent the FD and the key layout. I think it would help if you posted the code used to build the key. |
|
Back to top |
|
 |
|
|