Joined: 09 Sep 2005 Posts: 124 Topics: 52 Location: Chicago
Posted: Tue Apr 11, 2006 3:17 pm Post subject: PROCOPT's
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.
Thanks
Digger _________________ Tx
Digger
Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
Posted: Wed Apr 12, 2006 9:58 am Post subject:
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
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
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