Access given segments only.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Suman S
Registered Member
Posts: 12
Joined: Thu Apr 03, 2014 10:44 am

Access given segments only.

Post by Suman S »

Hi,

FOr example assume that in an IMS DB I have 5 segments. SEG1 is the route, SEG2,SEG3 and SEG4 are the direct dependents of SEG1. SEG2 has a child SEG5. Now I want to access only SEG1, SEG2, SEG3, AND SEG4 without retrieving SEG5? How whould I do it, Please help.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Access given segments only.

Post by Anuj Dhawan »

The easiest way out is -- use a PCB without SEG5. As your Programs' PSB does not know about the SEG5 - you can not retrieve it and you get what you want.
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.
Suman S
Registered Member
Posts: 12
Joined: Thu Apr 03, 2014 10:44 am

Re: Access given segments only.

Post by Suman S »

Thanks for the suggestion Anuj, this has worked.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Access given segments only.

Post by Anuj Dhawan »

Glad to know that you've got it working.

Appreciate your feedback,
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”