PROCOPT=G adn PROCOPT=A in IMS.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Baskar Ganesan
Registered Member
Posts: 14
Joined: Thu Jul 17, 2014 8:33 pm

PROCOPT=G adn PROCOPT=A in IMS.

Post by Baskar Ganesan »

Hi,

When we want to browse an IMS database we code PROCOPT=G in the PCB. What would happen if we are still just browsing a database though have used PROCOPT=A. Why dont we do this?
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: PROCOPT=G adn PROCOPT=A in IMS.

Post by Anuj Dhawan »

The difference lies in locking. With procopt 'A', if you issue GN or GU calls - You may well lock out other applications that are trying to read segments in the same "physical block". OTOH, a procopt of 'G' might lock out update or delete requests but will not lock out reads.

Hope that explains what you need.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Baskar Ganesan
Registered Member
Posts: 14
Joined: Thu Jul 17, 2014 8:33 pm

Re: PROCOPT=G adn PROCOPT=A in IMS.

Post by Baskar Ganesan »

Thanks, this explains it.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: PROCOPT=G adn PROCOPT=A in IMS.

Post by Anuj Dhawan »

Glad, we had been helpful.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”