MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

key field in STARTBR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
rakshith
Beginner


Joined: 26 Jul 2005
Posts: 32
Topics: 16
Location: bangalore

PostPosted: Mon Dec 26, 2005 8:12 am    Post subject: key field in STARTBR Reply with quote

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
View user's profile Send private message Yahoo Messenger
Hema_Manyam
Beginner


Joined: 15 Dec 2005
Posts: 20
Topics: 9

PostPosted: Tue Dec 27, 2005 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group