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

Query on insertion of records in in a DBD


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

New User


Joined: 24 Oct 2008
Posts: 6
Location: Pune

PostPosted: Tue Nov 18, 2008 8:01 pm
Reply with quote

Suppose this is the DB structure
Code:
       -----------
       | Airport |
       -----------
            |
            v
       -----------
       | Airline |
       -----------
            |
            v
     ---------------
     |             |
     v             v
-----------   -----------
| ARRIVAL |   | DEPART  |
-----------   -----------



I need to insert a call for the insertion of arrival and departs of flight
under corresponding airline and airport.

What can be pseudocode for it?

Thank You !
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Nov 19, 2008 11:28 am
Reply with quote

Use qualified SSAs for Airport and Airline segments and unqualified ssa for Arrival or Depart segments.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Nov 19, 2008 7:31 pm
Reply with quote

Lucky for me that I checked this forum - I responded in the other forum. The first thing you need to do is to tell us whether this is DLI, BMP, or MPP. You have said - in the other forum - that it is BMP. This means that you most likely have an input file. We need to see the layout for that file.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 20, 2008 2:43 am
Reply with quote

This can be very easy - all you need to do is to give us ALL of your info. If you give us your input file layout and it includes the airport and airline keys - great! It would also need to include the key values for the arrival and depart segments. The input file would also need to be sorted in that sequence. That is the most simple and easily resolved scenario.
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 Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top