Hi all,
We are on V5R4. The IBM manual says: The Change Data Area ( CHGDTAARA) command uses a *SHRUPD (shared for update) lock on the data area during command processing.
Requirement: Ensure other jobs can read a specific data area at the same time but only one job can update the data area at a time.
Solution: ALCOBJ specifying *EXCLRD.
Q1. Without reading below, is this the correct state to use for the stated requirement?
When the nightly backup runs (BRMS using Save-While-Active), a program with a CHGDTAARA command is getting CPF1063 - Cannot allocate object &1.
This is happening every night. At the time of the failure, a WRKOBJLCK shows the following:
Job User Number Lock Status Scope Thread
QPADEV002G WNDXZJJ 055861 *EXCLRD HELD *JOB (this is from an ALCOBJ immediately before the CHGDTAARA)
SAVDLY QSYSOPR 074668 *SHRRD HELD *JOB
The IBM manual on Save-while-active object locking rules says:
While it is establishing the checkpoint: *SHRRD
After checkpoint: None.
I have confirmed the failure time was during the time the backup was establishing the checkpoint but I don't see why it results in CPF1063.
If the backup program has a *SHRRD lock, the CHGDTAARA requires a *SHRUPD lock, and the IBM manual says:
If one job obtains *SHRRD then another job can obtain: *EXCLRD, *SHRUPD, *SHRNUP, or *SHRRD.
Why is the CHGDTAARA failing?
Is it possible something else has a lock (e.g. MIMIX) and it's not showing on the WRKOBJLCK report?
Is it possible to execute a CHGDTAARA while the backup with *SHRRD is running?
If not, we're going to backup the library in question from our DR system, which we are using MIMIX for.
Yours truly,
Glenn Gundermann
Manager, IT Application Management (Tor ZI-A)
Kuehne + Nagel Ltd.
77 Foster Crescent
Mississauga, ON L5R 0K1
Tel: (905) 501-6596
Cell: (416) 317-3144
glenn.gundermann@xxxxxxxxxxxxxxxx<mailto:glenn.gundermann@xxxxxxxxxxxxxxxx>
________________________________
To learn more about Kuehne + Nagel Ltd, please visit our website at: www.kuehne-nagel.com For the Kuehne + Nagel email disclaimer, visit:
http://www.kn-portal.com/material/Electronic_Email_Disclaimer_English_French.pdf
Visitez le site internet de Kuehne + Nagel Lt?e: www.kuehne-nagel.com Notre d?charge de responsabilit? est disponible comme suit:
http://www.kn-portal.com/material/Electronic_Email_Disclaimer_English_French.pdf
As an Amazon Associate we earn from qualifying purchases.