Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query on insertion of records in in a DBD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Query on insertion of records in in a DBD
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us