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

How to find if segment is read in any program.


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

New User


Joined: 19 Sep 2018
Posts: 4
Location: India

PostPosted: Thu Sep 20, 2018 1:34 pm
Reply with quote

Hi,
I have one child segment in IMS DB and i need to find if it is read in any of the program or not.
I tried searching one-by-one in few programs but this child segment is not mentioned instead its parent segment is read.

Is there any other way than manually checking one by one in all programs to confirm if child segment is read or not ?

Thanks,
Priyanka
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu Sep 20, 2018 2:27 pm
Reply with quote

Why do it manually? Why not use the search utility - 3.14 on my system.
Back to top
View user's profile Send private message
Priyanka AR

New User


Joined: 19 Sep 2018
Posts: 4
Location: India

PostPosted: Fri Sep 21, 2018 11:49 am
Reply with quote

Thanks Nic. Somehow i got few programs which are reading this child segment.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Fri Sep 21, 2018 4:43 pm
Reply with quote

Quote:
Somehow i got few programs which are reading this child segment
out of thin air? How did you get it ?
Back to top
View user's profile Send private message
Priyanka AR

New User


Joined: 19 Sep 2018
Posts: 4
Location: India

PostPosted: Tue Sep 25, 2018 5:40 pm
Reply with quote

I did srchfor with segment name. And then started checking program by program(as few programs were only mentioned segment name in comment and not actually reading it) and got 1-2 programs reading that segment.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Tue Sep 25, 2018 9:13 pm
Reply with quote

You said "Somehow" so I wondered how did you get it if not 3.14 (SRCHFOR). Thanks.
Back to top
View user's profile Send private message
Priyanka AR

New User


Joined: 19 Sep 2018
Posts: 4
Location: India

PostPosted: Wed Sep 26, 2018 11:39 am
Reply with quote

ohh "somehow" was for i got within first few programs(luckily). 3.14 options i already used, i wanted to know is there anything else.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Sep 26, 2018 2:10 pm
Reply with quote

Your version/change control software (endevor/changeman/whatever) should also be able to find all occurrences.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Sep 26, 2018 2:49 pm
Reply with quote

all depends ..
only if the segment layout is a standalone copybook/source

but the same result can be obtained - with the same assumption - under plain good ole ISPF by invoking the member parts list,
which can produce a formatted printout or a raw dataset that can be processed by a user program ( rexx would be a good candidate )
Back to top
View user's profile Send private message
yogi.47eie

New User


Joined: 16 Aug 2006
Posts: 45
Location: india

PostPosted: Wed Sep 26, 2018 3:42 pm
Reply with quote

Attempt at hi-jacking deleted.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Sep 26, 2018 5:25 pm
Reply with quote

Go start your own thread. Do not hijack that of other people.
Back to top
View user's profile Send private message
yogi.47eie

New User


Joined: 16 Aug 2006
Posts: 45
Location: india

PostPosted: Wed Sep 26, 2018 6:34 pm
Reply with quote

It is matter of avoiding duplicate threads .. If i start a new thread people will ask not to post duplicate questions.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Sep 26, 2018 11:22 pm
Reply with quote

If yours would have been a duplicate why post it? Why not simply try the suggestions posted here?
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 Error to invoke MPP program through B... IMS DB/DC 3
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
No new posts Compare 2 alphabets in a REXX and fin... CLIST & REXX 2
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top