Increment length of a segment in IMS.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Subhash Chander
Registered Member
Posts: 20
Joined: Sun Jul 21, 2013 4:56 am

Increment length of a segment in IMS.

Post by Subhash Chander »

Hi,

For the below structure of DBD

Code: Select all

 DBD NAME=TESTDBD,ACCESS=(HIDAM)                  
 *                                                            
  DATASET DD1=DATASET1,DEVICE=3390,SIZE=(2048)              
  SEGM NAME=PART,BYTES=50,PARENT=0,                    
  FIELD NAME=(PLANT,SEQ,U),BYTES=010,START=001,TYPE=C    
 *                                                            
  DBDGEN                                                      
  FINISH                                                      
  END
I need to add 5 fields in the segment SEGMENT PART. What needs to be done?
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Increment length of a segment in IMS.

Post by Anuj Dhawan »

You need to edit the DBD using "the version control tool" at your shop. Add 5 to the BYTES for segment PART:

Code: Select all

SEGM NAME=PART,BYTES=55,PARENT=0,
and run the DBDGEN. Mostly DBDGEN is done by IMS DBA.

Hope this helps.
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.
Subhash Chander
Registered Member
Posts: 20
Joined: Sun Jul 21, 2013 4:56 am

Re: Increment length of a segment in IMS.

Post by Subhash Chander »

This had worked.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Increment length of a segment in IMS.

Post by nicc »

Something is wrong - all you have done is extend the field PART by 5 bytes but the original post says you want to add 5 new FIELDS! So which is it?
Regards
Nic
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”