|
View previous topic :: View next topic
|
| Author |
Message |
t1nt1n
New User
.jpg)
Joined: 08 Jul 2005 Posts: 31
|
|
|
|
Hello
WE have a requirement like we get an input flat file with some values and we need to load it into a IMS-DB segment. What are the steps do we need to do for accomplishing this ? can some one help please... |
|
| Back to top |
|
 |
priyesh.agrawal
Senior Member

Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
t1nt1n,
It is not much different than what you do while making a GU or GN call to retrieve data from IMS DB.
1> Read Values from INPUT File.
2> Move read value to corresponding DB Variable.
3> Issue an ISRT call to segment.
4> check for Return Code.
Dont tell me you dont know how to make a call to IMS DB. I take seriously your say...
| Quote: |
| WE have a requirement |
Regards,
Priyesh. |
|
| Back to top |
|
 |
mbr_raja
New User

Joined: 15 Nov 2004 Posts: 26 Location: Chennai, India
|
|
|
|
There are two options available. They are
1). Using ISRT call, and insert each and everyone segment one by one by giving Unqualified SSA.
2). Using ISRT call with Command code as 'P' in PSB, you can use ISRT with multiple insert at a single short.
Try in both the ways, i will work fine. But the second option is optimised, if you insert multiple records of a given segment. |
|
| Back to top |
|
 |
|
|