MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find which Panvalet Library has a particular Pgm

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Nov 04, 2003 7:00 am    Post subject: How to find which Panvalet Library has a particular Pgm Reply with quote

This is a problem I face ocassionally, I am told to look into 'MEMDIBA' but I don't know if it is a JCL or Program or copybook or whatever. Only thing I know it is in atleast one of the 45 panvalet libraries which I can access only through Panvalet. Now how to find which are those?

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 04, 2003 8:56 am    Post subject: Reply with quote

Dibakar,

You can use the batch pgm(PAN#1) for searching a member in a panavalet library.

The multiple library search facility provides logical concatenation of CA-Panvalet libraries for the purpose of member name searches.

The PANDD1 DD or DLBL statement specifies the primary CA-Panvalet library used by PAN#1. CA-Panvalet always searches the primary library first for members. Allocate ddnames or DLBL PANDD11 through PANDD19 in your JOB STEP, or when executing PAN#1 under TSO to specify other, secondary CA-Panvalet libraries to be searched (in that order) for member names.You can allocate these names using JCL or dynamically. These ddnames should not use the JCL SUBSYS= parameter.

Use the PANALLOC TSO command to allocate PANDD11 through PANDD19 for multiple library member search for ++INCLUDE processing with the CA-Panvalet subsystem.

After CA-Panvalet searches the primary CA-Panvalet library, it then searches the secondary libraries in ddname or DLBL order until the member is found or until it searches all allocated CA-Panvalet libraries.

You can specify up to nine secondary libraries using any ddnames or DLBL.If you allocate PANDD11 and PANDD13 but not PANDD12, both PANDD11 and PANDD13 are used to resolve each ++INCLUDE or ++WRITE request.

If you do not allocate secondary libraries, none are searched. All members specified on ++INCLUDE or ++WRITE statements must reside on the primary library to be resolved.
The multiple library search facility permits establishment of libraries of common Subroutines or data descriptions that several application groups can share.

The following JCL causes the statements of MEMDIBA from YOUR PANLIB1 to be written to the SYSPRINT. If MEMDIBA is not found in YOUR PANLIB, YOUR PANLIB1 (the library associated with the next ddname or DLBL PANDD12) is searched next.

OS/390:
Code:

//STEP1     EXEC  PGM=PAN#1           
//SYSPRINT  DD SYSOUT=*               
//PANDD1    DD DISP=SHR,DSN=YOUR PANLIB1 
//PANDD12   DD DISP=SHR,DSN=YOUR PANLIB2
//PANDD13   DD DISP=SHR,DSN=YOUR PANLIB3
//SYSIN     DD *                       
++WRITE  PRINT,MEMDIBA                 


Hope this helps...

cheers

kolusu

PS: If you have Z/OS operating system then there is a feature called MEMBER. This works for regular pds's

Type in MEMBER MEMDIBA on 3.4 listing of your tid as high level qualifier and it searches all the PDS and displays the "Member: MEMDIBA" besides all the pds in which the member is found.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Nov 05, 2003 4:23 am    Post subject: Reply with quote

Thanks a lot Kolusu!

I tried "TSO PANALLOC" only to get following error -
Code:

PANV103E  ERROR -  REJECTED - SUBSYSTEM IS NOT ACTIVE    
PANV103E  ***  UNABLE TO BUILD SVC 99 TEXT UNIT           


So I tried Batch solution, slightly modified. It worked but gave more than I wanted. I am only looking which library has 'MEMDIB', but it also fetches me the data.

What would be the method to find libraries containg members starting with 'MEMDIB'?

Here is a REXX-JCL code to list the matched libraries (only). It will submit a job named ueridD

Code:

/* REXX program to submit job to search a member in all Panlibs.     
   Input: Member Name                                               
   Output: Library Names                                             
*/                                                                   
 arg memname                                                         
 if memname = '' then                                               
 do                                                                 
    say Give member Name                                             
    pull memname                                                     
 end                                                                 
                                                                     
 lib.1  = SYS2.SOURCLIB       ;lib.21 = SYS21.SOURCLIB               
.
.
.
                                           ;lib.42 = DOC42.SOURCLIB               
 lib_cnt = 42                                                       
                                                                     
/* Set up job */                                                     
 queue "//"userid()"D JOB (3401,S063),8048.DIBA,CLASS=D,MSGCLASS=Q,"
 queue "//          NOTIFY="userid()                                 
 queue "//TEMPDSN      EXEC  PGM=IEFBR14"                           
 queue "//HIT       DD DSN=&&HIT,DISP=(,PASS),UNIT=SYSDA,"           
 queue "//             SPACE=(TRK,(5,2),RLSE)"                       
 queue "//SKIP      DD DSN=&&SKIP,DISP=(,PASS),UNIT=SYSDA,"         
 queue "//             SPACE=(TRK,(5,2),RLSE)"                       
 do i = 1 to lib_cnt                                                 
      queue "//CHECK"i"     EXEC  PGM=PAN#1"                         
      queue "//SYSPRINT  DD DSN=&&HIT,DISP=SHR"                     
      queue "//PANDD1    DD DISP=SHR,DSN="lib.i                     
      queue "//SYSIN     DD *"                                       
      queue "++WRITE  PRINT,"memname                                 
      queue "//          IF CHECK"i".RC = 0 THEN"                   
      queue "//LIB"i"     EXEC  PGM=IEBGENER"                       
      queue "//SYSPRINT  DD DSN=&&SKIP,DISP=SHR"                     
      queue "//SYSUT1    DD DISP=SHR,DSN=&&HIT"                     
      queue "//SYSUT2    DD SYSOUT=*"                               
      queue "//SYSIN     DD DUMMY"                                   
      queue "//          ENDIF"                                     
 end                                                                 
 queue ""                                                           
                                                                     
/* submitting through writer file to preserve lower case */         
 "ALLOC F(INTRDR) RECFM(F) LRECL(80) SYSOUT(A) WRITER(INTRDR)"       
 "EXECIO * DISKW INTRDR (FINIS"                                     
 "FREE F(INTRDR)"                                                   
                                                                     
 say 'Thanks for using Diba''s tool'                                 
 exit                                                               
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Nov 28, 2003 3:24 am    Post subject: Reply with quote

We generally use this input to to pansan -

++SCAN *,"LUU6650",,,1,79

Can anyone tell me what fields are suppressed by ",,,". An example will help.

Thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group