View previous topic :: View next topic
|
Author |
Message |
prabe
New User
Joined: 09 Mar 2007 Posts: 17 Location: kerala
|
|
|
|
I have set of rcords in ksds file.
Prabs
vekili
chamb
12347
36749
then I going to first intialize the key-varible with zeros then issueing a start command with key-variable. then I am going to read a record using read next command .....
could any one tell the pointer position and my case which record will be read by the program... |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
If those are the keys of your records, the actual sequence would be
chamb
vekil
Prabs
12347
36749
Since lower case sorts before upper case and numerics sort after alphas.
If you start the browse at 00000, the read next will fetch 12347. |
|
Back to top |
|
|
prabe
New User
Joined: 09 Mar 2007 Posts: 17 Location: kerala
|
|
|
|
could you explain little more about start command and read next command in terms of pointer positioning |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Why don't you read a little about it in the File position indicator section in the Enterprise COBOL Programming Guide? |
|
Back to top |
|
|
|