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 

PROCOPT's

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Tue Apr 11, 2006 3:17 pm    Post subject: PROCOPT's Reply with quote

Hi

Please confirm/clarify my understanding as i'm confused with the below PROCOPTS:

1. PROCOPT=G - is used to read the data in the segment by the program, NOT allowing to update the same segment by an other program
PROCOPT=O - is used to read the data in the segment by the program but allowS the update of the same segment by an other program

What is the use of the combination GO?

and how come GOT or GON is helpful?

2. if i have the PROCOPT=GOT

can i update (REPLACE) the data in the database? or do i have to append "R" for the PROCOPTIONS, i mean for PROCOPT=GOTR?

Please help me in understanding these combinations.
Sad
Thanks
Digger
_________________
Tx
Digger
Back to top
View user's profile Send private message
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Wed Apr 12, 2006 9:58 am    Post subject: Reply with quote

yes your confused.

G - allows program to read. nothing to do with others programs operation on that segment. one problem is there , if other program updates the same segment occurenece or deletes it , then what ...........

this problem is addressed by O,N,T options

N---- Reduces the number of abends that read-only application programs are subject to. Read-only application programs can reference data being updated by another application program. When this happens, an invalid pointer to the data might exist. If an invalid pointer is detected
the read only application program abends. By specifying N, you avoid this. A GG status code is returned to the program instead.
N must be specified as GON, GONH, or GONP.


T ==> Is the same as the N operand, except that T causes DL/I to
automatically retry the operation. If the retry fails, a GG status code is
returned to the application program. T must be specified as GOT, GOTH,
or GOTP.


O - If the O option is used for a PCB, IMS does not check the
ownership of the segments returned. Therefore, the read without integrity
program might get a segment that has been updated by another program.
If the updating program abends and backs out, the read without integrity
program will have a segment that does not exist in the database and never did.

Therefore, if you use the O option do not update based on data read
with that option. O must be specified as GO, GON, GONP, GOT, GOTP,
or GOP only.



Take second question as assignement . Now ,you should tell this ?
_________________
Anil Sarathy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Thu May 25, 2006 3:19 pm    Post subject: Reply with quote

Hi Anil,

Thank you for your info and sorry for my late reply.

Initially the PROCOPT for the PCB was as mentioned below:

PCB TYPE=DB,DBDNAME=XXXABC99,PROCSEQ=XXXABC9I,KEYLEN=60,
PROCOPT=GOT
SENSEG NAME=XXXABC99,PARENT=0

Now I modified the program (DC transaction program) such that it has to update the database XXXABC99, and made the changes to procopt as PROCOPT=GR.

PCB TYPE=DB,DBDNAME=XXXABC99,PROCSEQ=XXXABC9I,KEYLEN=60,
PROCOPT=GR
SENSEG NAME=XXXABC99,PARENT=0

when ever 2 or more transactions are executed the job is abeneding with
TRAN xxxabc10 ABEND S000,U0018.

If i remain the same PROCOPT to the parent segment and add the PROCOPT parameter to the the child segment as below, will this work?

PCB TYPE=DB,DBDNAME=XXXABC99,PROCSEQ=XXXABC9I,KEYLEN=60,
PROCOPT=GOT
SENSEG NAME=XXXABC99,PARENT=0, PROCOPT=GR

Please let me know if i have to code differently.
_________________
Tx
Digger
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri May 26, 2006 8:53 am    Post subject: Reply with quote

MFdigger,

Please have a look at the PROCOPT options:

Code:

             G  for GET (READ)        D  for DELETE
             I  for INSERT            A  for all options (G,I,R,D)
             R  for REPLACE           L  for LOAD (initial load of data)
             K  for access to only the KEY of the segment
             O  for ONLY: used with G to indicate that Get Hold
                calls are not allowed
             P  for PATH calls

_________________
Shekar
Grow Technically
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 -> IMS 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