Im trying to unload selected components from Librarian to a PDS. Below is my JCL that works for 'MANU' HLQ only..
//*=====================================================================
//* UNLOAD MODULES FROM LIBRARIAN TO PDS
//*====================================================================*
//* 1. GENERATE LIBRARIAN -SEL STATEMENTS WITH LIBRARIAN GPO
//* INTO TEMP. DATA SET (DDNAME=OSJOB)
//*--------------------------------------------------------------------*
//SELGPO EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//MASTER DD DISP=SHR,DSN=SYSA.LIBRARY.TEST
//*SJOB DD DISP=(,CATLG,DELETE),DSN=BISWRX2.OSJOB1,
//OSJOB DD DISP=SHR,DSN=BISWRX2.OSJOB1,
// UNIT=SYSDA,SPACE=(TRK,(25,10),RLSE),
// DCB=(LRECL=80,BLKSIZE=6080,RECFM=FB)
//SYSPRINT DD SYSOUT=*,DCB=RECFM=FBA
//SYSIN DD *
-OPT GPO
-OPT TEMPS
-SEL NAME=/MANU/,EXEC
-END
/*
//*
====================
Now I want to have multiple HLQ-ed systems coming at 1 shot.. Ive tried the below combinations & some more.. they either failed or the 2nd line simply took a textual interpretation -
# -SEL NAME=/MANU/ & -SEL NAME=/ACPY/,EXEC
# -SEL NAME=/MANU/,EXEC
-SEL NAME=/ACPY/,EXEC
# -SEL NAME=/MANU/ & NAME=/ACPY/,EXEC
====================
Any suggestions on how to get this done, without repeating the entire step for multiple HLQs.. ofcourse : )
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
My reading of the CA-Librarian System Services manual indicates that this syntax should work, but I don't have access to a LIBRARIAN system at this time to try it:
Code:
-SEL (NAME=/MANU/,NAME=/ACPY/),EXEC
Terminology is critical in IT, where similar terms may mean very different things. And the term "HLQ" you used refers, on a mainframe, to the High Level Qualifier(s) of a data set name -- and only to data set names. Your usage of this term to refer to Librarian member names (or part of Librarian member names) is wrong and very misleading.
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
Try using a VBAR instead of the comma before the second NAME -- I misread the manual to indicate comma was an OR but it is actually AND. However, it is encouraging that GPO interpreted that syntax and processed it -- hence the VBAR most likely will work.
I couldnt identify anything in the UNLOAD step that would trigger an UPDATE intent.. if thats the case, then such code will not work for any prod setup. It may not be really 'updating' anything, but even an exclusive access wont be allowed.
Any pointers here ?
2. NICE TO HAVE - As an extension of the selective include of system components, would there be a way to selective exclude some as well ? Hope I could clarify
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
You would need to talk to the vendor about the RACF authority required to do what you are trying -- they can provide precise answers where I would have to guess. They -- or the manuals -- would also tell you about how to exclude members (and how the inclusion / exclusion rules work together).