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 

Extract specific data from IMS database

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


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Tue Jun 24, 2008 10:25 pm    Post subject: Extract specific data from IMS database Reply with quote

I need to copy some specific records(with amount greater than 100) from the IMS database. My shop has FileI but I don't see an option to do that.

Is there any tool or any batch JCL which I could use to extract specific records.

Any help is greatly appreciated!
Thanks.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jun 25, 2008 12:23 pm    Post subject: Reply with quote

JCL won't do it, batch or otherwise. But a program invoked by EXEC PGM= will. The problem is : is there a utility, or do you have to write your own. Utilities? FileAid springs to mind but I am not sure if it will do what you want. I love rolling-my-own so I would go down that route if it were not for the need to perhaps create PSBs etc.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
hari_uss
Beginner


Joined: 19 Dec 2002
Posts: 78
Topics: 6
Location: Trivandrum, India

PostPosted: Wed Jun 25, 2008 7:24 pm    Post subject: Reply with quote

If you go down the route of writing a program your own, think about the following.

What if tomorrow, you want to extract records where
1. field1 > 200?
2. field1 = 100?
3. field1 < 100?
4. Field2> 100? (and all other conditions mentioned above)
To make it more complicated,
5. Field1 = 100 and Field2 = 200.
6. Field1 = 100 or Field2= 200.
and then the all < or > combinations?

Will you write different programs for each of them or keep on changing the existing program?

Ideally you should have the program to work based on a set of parameters, using which you should be able to tell the field name, the relational operator, value to be compared and additionally, if multiple fields are there, conditional parameter as well.

Sounds too complicated? Well, it is worth the effort. You do it and all the followers will admire you. In my company, I have a program that will do all these against IMS database but unfortunately I cannot share the source code because of confidentiality issues. However, if you are interested, I will be able to guide you in design.
Back to top
View user's profile Send private message Send e-mail
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