MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Update IMS database through Datavantage

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
Rohit Sharma
Beginner


Joined: 30 Jan 2004
Posts: 5
Topics: 3

PostPosted: Fri Jan 30, 2004 1:53 am    Post subject: Update IMS database through Datavantage Reply with quote

Hi,

My requirement is as follows
I have an IMS database with EMP as parent Segment and PAY as the only child segment. I need to change the value of a packed field in PAY segment to a constant value (say packed value of 5) for those EMP segments for which the field AGE in the Parent segment EMP is more than '50'.

Please let me know how can we achieve this through Datavantage and if possible through INSYNC. I need to have this as a batch job.

Thanks in advance,
Rohit.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jan 30, 2004 6:45 am    Post subject: Reply with quote

Rohitsharma,

You can code a simple cobol pgm with GHU (get hold unique) call and then use REPL (replace) call to change the contents of the pay segment. I also think it can be done with file-aid provided your shop has file-aid IMS.

Hope this helps....

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rohit Sharma
Beginner


Joined: 30 Jan 2004
Posts: 5
Topics: 3

PostPosted: Mon Feb 02, 2004 10:50 pm    Post subject: Reply with quote

Thanks for the reply, Kolusu. But I need to frequently change different fields of database. This is required for testing some specific conditions. I wanted to avoid writing a Cobol program and achieve it through JCL itself. I don't have File-aid but have INSYNC at my shop.

Please let me know how can this be achieved by Datavantage and INSYNC, if at all it can be done.

Thanks,
Rohit.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group