Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us