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
 

 

how to retrieve data from d/b?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
snm

New User


Joined: 10 Mar 2005
Posts: 11

PostPosted: Thu Aug 11, 2005 12:47 pm    Post subject: how to retrieve data from d/b?
Reply with quote

hi
in my d/b i have 3 levels and in each level 1 segment is there. parent is 1 and child in level1 is 1 and child in level 2 is 1. and for each segment there r 10 occurences. here parent has 10 seg occurences, next level child has 10 occurences and the last level has 10 occurences.
here what i want to do is retrieve all the records.
by specifying a GN call can we do this or any other way is there?



thanks & regards
Back to top
View user's profile Send private message

banu

New User


Joined: 09 Aug 2005
Posts: 8
Location: Chennai

PostPosted: Thu Aug 11, 2005 5:22 pm    Post subject:
Reply with quote

hi,

The logic for ur prgm goes like this
"1. Give a call to 1st parent(1st level) using GU call with status code ?ge?

Do while pcb-status code1 = ? ? ( successful call)
Give a call to 1st child (2nd level) using GU with qualified SSA using SSA of 1st parent

Do while pcb-status code2 = ? ?
Give a call to 1st child (3rd level) using GU with qualified SSA using SSA of 1st parent &child of (2nd level)
Do while pcb-status code3 = ? ?
Do some operations?.
Give a call to successive segments in 3rd level using GN until status code ?gb?
End;
Give a call to successive segments in 2nd level using GN until status code ?gb?
End;
Give a call to successive segments in 1st level using GN until status code ?gb?
End;
"
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Thu Aug 11, 2005 5:47 pm    Post subject: Re: how to retrieve data from d/b?
Reply with quote

Hi snm,

You can start with a GN Call for parent segment, as you need to retreive all the records, think no need to use GU....

First Loop GN CALL UNTILL END of DB....that you can check by return code of GN Call

Insdie this loop, GNP CALL For 1st level child segment UNTILL END of DB...

Insdie the loop with GNP...another GNP for 2nd level child segment same as above.....

All the calls with unqualified SSA, as you are not going to make a GU Call......

Corrections are wel come

Regards,

Priyesh.
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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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