View previous topic :: View next topic |
Author |
Message |
rakshith Beginner
Joined: 26 Jul 2005 Posts: 32 Topics: 16 Location: bangalore
|
Posted: Mon Dec 26, 2005 8:12 am Post subject: key field in STARTBR |
|
|
Hi all,
I have a question on key field (sequence-number).
01 KEY.
05 CODE1 PIC X(02).
05 CODE2 PIC X(02).
05 SEQ-NUMBER PIC 9(03).
:
:
procedure division.
EXEC CICS STARTBR
FILE ('file')
RIDFLD (key)
KEYLENGTH (LENGTH OF KEY)
GTEQ
RESP (WS-RESPONSE)
END-EXEC
here our people are insisting me to use Seq number in the key field, I donot know in what way it will be usefull,
I just want to know whether it is mandatory to use sequence number while doing browsing of VSAM dataset in CICS ?
If yes in what way it is useful ?
is this field will be automatically increment ?
please clarify my doubt.
thanks in advance.
rakshith. |
|
Back to top |
|
 |
Hema_Manyam Beginner
Joined: 15 Dec 2005 Posts: 20 Topics: 9
|
Posted: Tue Dec 27, 2005 6:39 am Post subject: |
|
|
Hi,
The STARTBR command establishes the position within the file but does not retrieve a record. Here based on key value, position is set in the file. So it depends on your requirement
HTH
Hema |
|
Back to top |
|
 |
|
|