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

Loading an input Flat file into a IMS-DB segment


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

New User


Joined: 08 Jul 2005
Posts: 31

PostPosted: Wed Dec 21, 2005 2:23 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Dec 21, 2005 4:31 pm
Reply with quote

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
View user's profile Send private message
mbr_raja

New User


Joined: 15 Nov 2004
Posts: 26
Location: Chennai, India

PostPosted: Wed Apr 05, 2006 8:32 pm
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Setting RC using NULLOFL/NOTMTOFL for... SYNCSORT 6
Search our Forums:


Back to Top