|
View previous topic :: View next topic
|
| Author |
Message |
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
hi
i am reading a ksds file with alternate key. here is the following.
*** WS-NUM is my alternate key.
MOVE 100 TO WS-NUM
START VSAMFILE KEY IS EQUAL TO WS-NUM.
PERFORM UNTIL WS-VSAM-STATUS = '00'
PERFORM READ-VSAMFILE
END-PERFORM.
READ-VSAMFILE.
READ VSAMFILE NEXT.
IF WS-VSAM-STATUS = '00' OR '02'
CONTINUE
ELSE
PERFORM ERROR-PARA
END-IF.
Kindly let me know if i am doing right....and checking for the right statuses. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| FS 00 normal and FS 02 more coming, but what about FS 10 no more available? |
|
| Back to top |
|
 |
vamskrish Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 27 Location: virginia
|
|
|
|
| as far as i understand...if there are more records with that alternate key then the vsam status code would be '02' and when the final one is reached the status code would be '00' which indicates no more available with that alternate key...hope i am right. |
|
| Back to top |
|
 |
|
|