Search a copybook in different libraries



IBM's Command List programming language & Restructured Extended Executor

Search a copybook in different libraries

Postby ramya_MF » Mon Nov 19, 2012 2:21 pm

Hi Folks,

i have a requirement to develop a rexx tool. in cobol program, place the cursor over copybook and press enter it will search for that copybook in different libraries (most probably Test region,UAT,Production) then display the libraries that are having that copybook member.

Please suggest me how to achive this, i am able to search in one library by using SYSDSN function, but coming to multiple libraries i am not able to list the copy member found libraries.


Thanks,
Ramya
ramya_MF
 
Posts: 11
Joined: Fri Jul 20, 2012 4:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Search a copybook in different libraries

 

Re: Search a copybook in different libraries

Postby Pandora-Box » Mon Nov 19, 2012 2:36 pm

My suggestion

You might need to decide upon if you need to look at which version of copybook

Do the SYSDSN function in loop from DEV till PROD
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: Search a copybook in different libraries

Postby ramya_MF » Mon Nov 19, 2012 2:45 pm

Thanks Pandora for your reply,

But my requirement like to list out all the copybook found libraries in a screen, then accept the user input, based on his input we need to expand the copybook from user selected library.
ramya_MF
 
Posts: 11
Joined: Fri Jul 20, 2012 4:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Search a copybook in different libraries

Postby Pandora-Box » Mon Nov 19, 2012 3:21 pm

What you could do is

Search the libraries for identifying the presence of the copybook and if present store the values along with the library names in the ISPF table and display them.

Then using select the needed record and try to view it
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: Search a copybook in different libraries

Postby ramya_MF » Mon Nov 19, 2012 3:48 pm

Yes very good idea Pandora,

if you dont mind can u please share the related links or related code to store the libraries in a panel??? because till now i did not have experience on ISPF tables.
ramya_MF
 
Posts: 11
Joined: Fri Jul 20, 2012 4:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Search a copybook in different libraries

Postby Pedro » Mon Nov 19, 2012 10:20 pm

identifying the presence of the copybook and if present store the values


I think you should display all of the copybook libraries in an ISPF table, with an indication of which have the member and which do not.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: Search a copybook in different libraries

Postby Pandora-Box » Tue Nov 20, 2012 12:09 am

Pedro,

I thought why display the all copybooks libraries even if it doesn't contain the member

So user can select only those present and which he needs

Also we wont be confusing

But It doesnt ring any bell for me if you said that for some other purpose
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: Search a copybook in different libraries

Postby NicC » Tue Nov 20, 2012 1:11 am

I just display the relevant libraries. The list of libraries searched is available via Help.
Ramya, save the libraries that need to presented to the user in a stem. When you have finished searching then build a table. Refer to the Dialogue Developers Guide and Reference
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Search a copybook in different libraries

Postby ramya_MF » Tue Nov 20, 2012 10:33 am

Yes NicC, I need to display the relevent libraries only. No need to display all the libraries.
ramya_MF
 
Posts: 11
Joined: Fri Jul 20, 2012 4:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Search a copybook in different libraries

Postby Pedro » Tue Nov 20, 2012 7:18 pm

My preference to display all of the libraries was in case you determine that the member is missing from a library where it is supposed to be.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post