I want to get the maximum key value in between the given range.(Maximum value between 1000 to 2000). Below My VSAM data.
Key
1001
1002
1003
2001
2006
Now I have moved 1999 to key and start search
START VSAM-KSDS-FILE KEY IS > 1999
Then I have read next record but I am getting 2001 But I want the maximum key value of 1003.(Maximum value between 1000 to 2000)
How can I get this value?