IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IMS DLI - About unload segment


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tuxama

New User


Joined: 25 Jan 2007
Posts: 42
Location: france

PostPosted: Tue Oct 23, 2007 2:49 am
Reply with quote

I am not a DBA, just a programmer.

My database structure (DLI)

Code:

ROOT
 !
SEGMENT B
 !
SEGMENT C
 !
SEGMENT D


Also I have in a sequential file (my input) a list of some root key (one per line).

What I need
Unload all C SEGMENTS in sequential file that the root parent as key belongs in the list of the input file.

The purpose of this is
Modify (ICETOOL) one value in all the C SEGMENTS unloaded and reload those in database.

Is it possible without writing a program ?
Yes. How ?

Thanks for help?

Right my english is poor... sorry.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Oct 23, 2007 10:30 am
Reply with quote

Quote:
Modify (ICETOOL) one value in all the C SEGMENTS unloaded and reload those in database.


If you just want to change record type SEGMENT C, then in SORT there are options like IFTHEN or WHEN thru which you can just go and change only SEGMENT C records.
Back to top
View user's profile Send private message
tuxama

New User


Joined: 25 Jan 2007
Posts: 42
Location: france

PostPosted: Wed Oct 24, 2007 1:28 am
Reply with quote

My question was not very clear !!

I find an answer in the IMSTOOL documentation.

1) To unload I used an IPR

2) To modify the value I needed in all the SEGMENTS C, I wrote an USER EXIT that is called by the IPR utility for each segment. I just needed to set in the OUTPUT card of the HPSIN :
- the option "dbrskip" to "Yes", in order to allows the database record skip option
- the option "ext" to "Yes", in order to indicates that segments are modified by the user exit.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts changing defaults in db2 admin - Unlo... DB2 0
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top