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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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