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

Parsing Root segments


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

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Fri Oct 23, 2009 1:42 am
Reply with quote

Hi all,

I have a scenario. I want to identify the root segment alone.


Database layout.


Lets say level 0 Hospital-1, Hospital-2, Hospital-3,4,5 => Hospital Segment

Hospital-1 has Ward-A, Ward-B, Ward-C => Ward Segment

Ward-A has Patient-1, Patient-2, Patient-3 => Patient Segment

Similarly for Hospital-2 , Ward-A, Ward-B, Patient-A, Patient-B


I'm reading the DB from Hospital 3 onwards by using a GU call to reposition at Hospital-3.

Then i'm reading the Hospital, Wards and Patient Information to the IO Area starting from Hospital - 3.

But when i get the Hospital segment in the IO Area (lets say Hospital-6), i want to identify.


Could anyone please help me on this ?...
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Fri Oct 23, 2009 11:36 am
Reply with quote

Anil,
You can use Segment level field in your PCB to identify the Hospital segment.

Check this post for more information.

ibmmainframes.com/viewtopic.php?t=44209
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Fri Oct 23, 2009 4:24 pm
Reply with quote

You can also look at the key feedback area in your PCB.
Back to top
View user's profile Send private message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Fri Oct 23, 2009 5:27 pm
Reply with quote

Thank you all
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 Parsing Large JSON file using COBOL COBOL Programming 4
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts parsing with startat and endbefr SYNCSORT 10
No new posts XML Parsing in COBOL creating "h... COBOL Programming 0
This topic is locked: you cannot edit posts or make replies. Parsing more than 1000 columns in a s... SYNCSORT 10
Search our Forums:

Back to Top