Re: Catalog Rebuild JCL

2013-10-09 Thread Rob Schramm
Or if you have a copy of MCNVTCAT around..

Very unsupported.. but still works.

RCNVTCAT  is the newer younger .. possibly better version.

Rob Schramm
On Oct 8, 2013 2:40 PM, Skip Robinson jo.skip.robin...@sce.com wrote:

 I would love to have been the person to point this out, but clearly I
 don't pay enough attention at SHARE. ;-(  Thank you DFP!

 .
 .
 JO.Skip Robinson
 Southern California Edison Company
 Electric Dragon Team Paddler
 SHARE MVS Program Co-Manager
 626-302-7535 Office
 323-715-0595 Mobile
 jo.skip.robin...@sce.com



 From:   John Eells ee...@us.ibm.com
 To: IBM-MAIN@LISTSERV.UA.EDU,
 Date:   10/08/2013 10:44 AM
 Subject:Re: Catalog Rebuild JCL
 Sent by:IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU



 (Reposting to the list server.)

 Skip Robinson wrote:
 snip
  
   OTOH do not move the user catalog to a different volume. You would then
   have to disconnect the user catalog from each master, at which point
 you
   would lose all alias definitions and have to redefine them after
   reconnecting. That would be an arduous effort.

 DFSMSdfp Development was kind enough to make this less ardous for those
 who can wait for z/OS V2.1; from the announcement letter:

 Also, new support enables you to preserve user catalog connector alias
 entries when you temporarily delete a user catalog so they need not be
 redefined when the catalog is reallocated, and prevent new catalog
 entries using those aliases from being defined until the new catalog is
 available. This is intended to simplify the reallocation of user
 catalogs.

 --
 John Eells
 z/OS Technical Marketing
 IBM Poughkeepsie
 ee...@us.ibm.com


 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Catalog Rebuild JCL

2013-10-08 Thread Jake anderson
Hello,

I am in the process of re-sizing a user catalog and I see there are almost
2000+ aliases defined to it. This is for one of our plex where we have 4
systems and I understand during restore the aliases will be too restored on
the system where I am running the JCL(for catalog resize). For other System
I have to prepare a define alias JCL for 2000+ aliases.

I am looking for some REXX which can help me in extracting the aliases and
prepare  control card to re-define the same aliases pointing to the
Usercatalog.

Could someone point me to some sample Rexx which can help me ?

Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Lizette Koehler
Jake,

You can always do a LISTC in REXX and extract ALIAS entries.

However, I am not sure what you are working on.

If I resize a catalog I use (very generalized steps)

EXPORT into Temp
DEL/DEF
IMPORT

Process for resizing.

If I am moving ALIAS, I use something like REPRO MERGECAT

I rarely have to define all aliases to a catalog in this manner.  

Could you provide better detail?  Why would the above not work for your
process?

Also, there are products on the market that can actually do these types of
activities.

Aliases are defined in the MCAT pointing to a user cat.  So are you going to
delete all of your aliases out of your MCAT?  If so, that could be an
interesting procedure.  Also, if you have VSAM datasets, you have to
consider this process and its effect on your VSAM datasets.


Lizette


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jake anderson
Sent: Tuesday, October 08, 2013 5:57 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Catalog Rebuild JCL

Hello,

I am in the process of re-sizing a user catalog and I see there are almost
2000+ aliases defined to it. This is for one of our plex where we have 4
systems and I understand during restore the aliases will be too restored on
the system where I am running the JCL(for catalog resize). For other System
I have to prepare a define alias JCL for 2000+ aliases.

I am looking for some REXX which can help me in extracting the aliases and
prepare  control card to re-define the same aliases pointing to the
Usercatalog.

Could someone point me to some sample Rexx which can help me ?

Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Hervey Martinez
Jake,

The alias' are in the master catalog not in the user catalog. If you have 
multiple master catalogs, then the user cat needs to be detached from the other 
masters before you do the resize and after the re-org; then, it has to be 
re-connected back to those same masters.  

Regards,

Hervey


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jake anderson
Sent: Tuesday, October 08, 2013 8:57 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Catalog Rebuild JCL

Hello,

I am in the process of re-sizing a user catalog and I see there are almost
2000+ aliases defined to it. This is for one of our plex where we have 4
systems and I understand during restore the aliases will be too restored on the 
system where I am running the JCL(for catalog resize). For other System I have 
to prepare a define alias JCL for 2000+ aliases.

I am looking for some REXX which can help me in extracting the aliases and 
prepare  control card to re-define the same aliases pointing to the Usercatalog.

Could someone point me to some sample Rexx which can help me ?

Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Jake anderson
I agree the aliases do Point to Master catalog. Here I do not use IDCAMS
but I use CA CREW for catalog Resize. So for other system I have to perform
a Redefine of aliases and Yes in our plex we have master catalog defined
for each system and Usercatalogs are shared across the system. So for
defining an alias I must be generating a IDCAMS control card using where I
mention like :

DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL on
each system then the mastercatalog parameter is not required.

So Just looking for a rexx exec which can extract the list from a PS
file(where only alias name is present) and prepare a control card for
IDCAMS.


On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez 
hervey.marti...@custserv.com wrote:

 Jake,

 The alias' are in the master catalog not in the user catalog. If you have
 multiple master catalogs, then the user cat needs to be detached from the
 other masters before you do the resize and after the re-org; then, it has
 to be re-connected back to those same masters.

 Regards,

 Hervey


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 8:57 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Catalog Rebuild JCL

 Hello,

 I am in the process of re-sizing a user catalog and I see there are almost
 2000+ aliases defined to it. This is for one of our plex where we have 4
 systems and I understand during restore the aliases will be too restored
 on the system where I am running the JCL(for catalog resize). For other
 System I have to prepare a define alias JCL for 2000+ aliases.

 I am looking for some REXX which can help me in extracting the aliases and
 prepare  control card to re-define the same aliases pointing to the
 Usercatalog.

 Could someone point me to some sample Rexx which can help me ?

 Jake

 --
 For IBM-MAIN subscribe / signoff / archive access instructions, send email
 to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Lizette Koehler
Jake,

Have you contacted CA Support for CREWS.  Any product I have seen that does
CATALOG has support for your functions.  That includes TREX and Catalog
Recovery Plus

So, a quick search on the CA Website provided


Question:  Looking for example of a restore on a catalog and its aliases?

Answer:  

Here is an example of a restore for one catalog and its aliases:
file://RESTORE JOB
file://STEP EXEC PGM=CREWS
file://SYSPRINT DD SYSOUT=A
file://RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD
file://SYSIN DD *
RESTORE
ALIAS
CAT(CATALOG.MVSICF1.VSYSC06)


Lizette


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jake anderson
Sent: Tuesday, October 08, 2013 6:25 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Catalog Rebuild JCL

I agree the aliases do Point to Master catalog. Here I do not use IDCAMS but
I use CA CREW for catalog Resize. So for other system I have to perform a
Redefine of aliases and Yes in our plex we have master catalog defined for
each system and Usercatalogs are shared across the system. So for defining
an alias I must be generating a IDCAMS control card using where I mention
like :

DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL on each
system then the mastercatalog parameter is not required.

So Just looking for a rexx exec which can extract the list from a PS
file(where only alias name is present) and prepare a control card for
IDCAMS.


On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez 
hervey.marti...@custserv.com wrote:

 Jake,

 The alias' are in the master catalog not in the user catalog. If you 
 have multiple master catalogs, then the user cat needs to be detached 
 from the other masters before you do the resize and after the re-org; 
 then, it has to be re-connected back to those same masters.

 Regards,

 Hervey


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
 On Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 8:57 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Catalog Rebuild JCL

 Hello,

 I am in the process of re-sizing a user catalog and I see there are 
 almost
 2000+ aliases defined to it. This is for one of our plex where we have 
 2000+ 4
 systems and I understand during restore the aliases will be too 
 restored on the system where I am running the JCL(for catalog resize). 
 For other System I have to prepare a define alias JCL for 2000+ aliases.

 I am looking for some REXX which can help me in extracting the aliases 
 and prepare  control card to re-define the same aliases pointing to 
 the Usercatalog.

 Could someone point me to some sample Rexx which can help me ?

 Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Lizette Koehler
Reposting without the FILE: added



Question:  Looking for example of a restore on a catalog and its aliases?

Answer:  

Here is an example of a restore for one catalog and its aliases:
//RESTORE JOB
//STEP EXEC PGM=CREWS
//SYSPRINT DD SYSOUT=A
//RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD
//SYSIN DD *
RESTORE
ALIAS
CAT(CATALOG.MVSICF1.VSYSC06)


Sorry for the File Insert.  Do not know where that came from

Lizette

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Lizette Koehler
Sent: Tuesday, October 08, 2013 6:33 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Catalog Rebuild JCL

Jake,

Have you contacted CA Support for CREWS.  Any product I have seen that does
CATALOG has support for your functions.  That includes TREX and Catalog
Recovery Plus

So, a quick search on the CA Website provided


Question:  Looking for example of a restore on a catalog and its aliases?

Answer:  

Here is an example of a restore for one catalog and its aliases:
file://RESTORE JOB
file://STEP EXEC PGM=CREWS
file://SYSPRINT DD SYSOUT=A
file://RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD file://SYSIN DD * RESTORE
ALIAS
CAT(CATALOG.MVSICF1.VSYSC06)


Lizette


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jake anderson
Sent: Tuesday, October 08, 2013 6:25 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Catalog Rebuild JCL

I agree the aliases do Point to Master catalog. Here I do not use IDCAMS but
I use CA CREW for catalog Resize. So for other system I have to perform a
Redefine of aliases and Yes in our plex we have master catalog defined for
each system and Usercatalogs are shared across the system. So for defining
an alias I must be generating a IDCAMS control card using where I mention
like :

DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL on each
system then the mastercatalog parameter is not required.

So Just looking for a rexx exec which can extract the list from a PS
file(where only alias name is present) and prepare a control card for
IDCAMS.


On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez 
hervey.marti...@custserv.com wrote:

 Jake,

 The alias' are in the master catalog not in the user catalog. If you 
 have multiple master catalogs, then the user cat needs to be detached 
 from the other masters before you do the resize and after the re-org; 
 then, it has to be re-connected back to those same masters.

 Regards,

 Hervey


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
 On Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 8:57 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Catalog Rebuild JCL

 Hello,

 I am in the process of re-sizing a user catalog and I see there are 
 almost
 2000+ aliases defined to it. This is for one of our plex where we have
 2000+ 4
 systems and I understand during restore the aliases will be too 
 restored on the system where I am running the JCL(for catalog resize).
 For other System I have to prepare a define alias JCL for 2000+ aliases.

 I am looking for some REXX which can help me in extracting the aliases 
 and prepare  control card to re-define the same aliases pointing to 
 the Usercatalog.

 Could someone point me to some sample Rexx which can help me ?

 Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Jake anderson
Hello Lizette,

This is for the system from where we perform the catalog resize. So for
other systems how do we get the aliases pointing to their Master catalog ?


On Tue, Oct 8, 2013 at 7:05 PM, Lizette Koehler stars...@mindspring.comwrote:

 Reposting without the FILE: added



 Question:  Looking for example of a restore on a catalog and its aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 //RESTORE JOB
 //STEP EXEC PGM=CREWS
 //SYSPRINT DD SYSOUT=A
 //RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD
 //SYSIN DD *
 RESTORE
 ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Sorry for the File Insert.  Do not know where that came from

 Lizette

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Lizette Koehler
 Sent: Tuesday, October 08, 2013 6:33 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 Jake,

 Have you contacted CA Support for CREWS.  Any product I have seen that does
 CATALOG has support for your functions.  That includes TREX and Catalog
 Recovery Plus

 So, a quick search on the CA Website provided


 Question:  Looking for example of a restore on a catalog and its aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 file://RESTORE JOB
 file://STEP EXEC PGM=CREWS
 file://SYSPRINT DD SYSOUT=A
 file://RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD file://SYSIN DD *
 RESTORE
 ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Lizette


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 6:25 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 I agree the aliases do Point to Master catalog. Here I do not use IDCAMS
 but
 I use CA CREW for catalog Resize. So for other system I have to perform a
 Redefine of aliases and Yes in our plex we have master catalog defined for
 each system and Usercatalogs are shared across the system. So for defining
 an alias I must be generating a IDCAMS control card using where I mention
 like :

 DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL on
 each
 system then the mastercatalog parameter is not required.

 So Just looking for a rexx exec which can extract the list from a PS
 file(where only alias name is present) and prepare a control card for
 IDCAMS.


 On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez 
 hervey.marti...@custserv.com wrote:

  Jake,
 
  The alias' are in the master catalog not in the user catalog. If you
  have multiple master catalogs, then the user cat needs to be detached
  from the other masters before you do the resize and after the re-org;
  then, it has to be re-connected back to those same masters.
 
  Regards,
 
  Hervey
 
 
  -Original Message-
  From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
  On Behalf Of Jake anderson
  Sent: Tuesday, October 08, 2013 8:57 AM
  To: IBM-MAIN@LISTSERV.UA.EDU
  Subject: Catalog Rebuild JCL
 
  Hello,
 
  I am in the process of re-sizing a user catalog and I see there are
  almost
  2000+ aliases defined to it. This is for one of our plex where we have
  2000+ 4
  systems and I understand during restore the aliases will be too
  restored on the system where I am running the JCL(for catalog resize).
  For other System I have to prepare a define alias JCL for 2000+ aliases.
 
  I am looking for some REXX which can help me in extracting the aliases
  and prepare  control card to re-define the same aliases pointing to
  the Usercatalog.
 
  Could someone point me to some sample Rexx which can help me ?
 
  Jake

 --
 For IBM-MAIN subscribe / signoff / archive access instructions, send email
 to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Lizette Koehler
Check out 

IMPORT function of IDCAMS  

 also this tech doc could be helpful

 http://www-01.ibm.com/support/docview.wss?uid=isg1II13354



A quick case opened to CA CREWS will probably get you answers that might
help expand on the use of this product.



Lizette



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jake anderson
Sent: Tuesday, October 08, 2013 7:45 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Catalog Rebuild JCL

Hello Lizette,

This is for the system from where we perform the catalog resize. So for
other systems how do we get the aliases pointing to their Master catalog ?


On Tue, Oct 8, 2013 at 7:05 PM, Lizette Koehler
stars...@mindspring.comwrote:

 Reposting without the FILE: added



 Question:  Looking for example of a restore on a catalog and its aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 //RESTORE JOB
 //STEP EXEC PGM=CREWS
 //SYSPRINT DD SYSOUT=A
 //RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD //SYSIN DD * RESTORE 
 ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Sorry for the File Insert.  Do not know where that came from

 Lizette

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
 On Behalf Of Lizette Koehler
 Sent: Tuesday, October 08, 2013 6:33 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 Jake,

 Have you contacted CA Support for CREWS.  Any product I have seen that 
 does CATALOG has support for your functions.  That includes TREX and 
 Catalog Recovery Plus

 So, a quick search on the CA Website provided


 Question:  Looking for example of a restore on a catalog and its aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 file://RESTORE JOB
 file://STEP EXEC PGM=CREWS
 file://SYSPRINT DD SYSOUT=A
 file://RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD file://SYSIN DD * 
 RESTORE ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Lizette


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
 On Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 6:25 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 I agree the aliases do Point to Master catalog. Here I do not use 
 IDCAMS but I use CA CREW for catalog Resize. So for other system I 
 have to perform a Redefine of aliases and Yes in our plex we have 
 master catalog defined for each system and Usercatalogs are shared 
 across the system. So for defining an alias I must be generating a 
 IDCAMS control card using where I mention like :

 DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL 
 on each system then the mastercatalog parameter is not required.

 So Just looking for a rexx exec which can extract the list from a PS 
 file(where only alias name is present) and prepare a control card for 
 IDCAMS.


 On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez  
 hervey.marti...@custserv.com wrote:

  Jake,
 
  The alias' are in the master catalog not in the user catalog. If you 
  have multiple master catalogs, then the user cat needs to be 
  detached from the other masters before you do the resize and after 
  the re-org; then, it has to be re-connected back to those same masters.
 
  Regards,
 
  Hervey
 
 
  -Original Message-
  From: IBM Mainframe Discussion List 
  [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jake anderson
  Sent: Tuesday, October 08, 2013 8:57 AM
  To: IBM-MAIN@LISTSERV.UA.EDU
  Subject: Catalog Rebuild JCL
 
  Hello,
 
  I am in the process of re-sizing a user catalog and I see there are 
  almost
  2000+ aliases defined to it. This is for one of our plex where we 
  2000+ have
  2000+ 4
  systems and I understand during restore the aliases will be too 
  restored on the system where I am running the JCL(for catalog resize).
  For other System I have to prepare a define alias JCL for 2000+ aliases.
 
  I am looking for some REXX which can help me in extracting the 
  aliases and prepare  control card to re-define the same aliases 
  pointing to the Usercatalog.
 
  Could someone point me to some sample Rexx which can help me ?
 
  Jake

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread Skip Robinson
As has been pointed out, an alias definition lives in the *master* 
catalog(s), not in the user catalog itself. An alias in an external 
pointer that tells the (current) system how find the catalog containing 
the actual data set entry. When a user catalog is EXPORTed and then 
IMPORTed, any master catalog containing an alias is not affected at all. 
As long as the user catalog ends up on the original volume, alias 
processing will work exactly as before. 

OTOH do not move the user catalog to a different volume. You would then 
have to disconnect the user catalog from each master, at which point you 
would lose all alias definitions and have to redefine them after 
reconnecting. That would be an arduous effort. 

.
.
JO.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
626-302-7535 Office
323-715-0595 Mobile
jo.skip.robin...@sce.com



From:   Jake anderson justmainfra...@gmail.com
To: IBM-MAIN@LISTSERV.UA.EDU, 
Date:   10/08/2013 07:50 AM
Subject:Re: Catalog Rebuild JCL
Sent by:IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU



Hello Lizette,

This is for the system from where we perform the catalog resize. So for
other systems how do we get the aliases pointing to their Master catalog ?


On Tue, Oct 8, 2013 at 7:05 PM, Lizette Koehler 
stars...@mindspring.comwrote:

 Reposting without the FILE: added



 Question:  Looking for example of a restore on a catalog and its 
aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 //RESTORE JOB
 //STEP EXEC PGM=CREWS
 //SYSPRINT DD SYSOUT=A
 //RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD
 //SYSIN DD *
 RESTORE
 ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Sorry for the File Insert.  Do not know where that came from

 Lizette

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Lizette Koehler
 Sent: Tuesday, October 08, 2013 6:33 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 Jake,

 Have you contacted CA Support for CREWS.  Any product I have seen that 
does
 CATALOG has support for your functions.  That includes TREX and Catalog
 Recovery Plus

 So, a quick search on the CA Website provided


 Question:  Looking for example of a restore on a catalog and its 
aliases?

 Answer:

 Here is an example of a restore for one catalog and its aliases:
 file://RESTORE JOB
 file://STEP EXEC PGM=CREWS
 file://SYSPRINT DD SYSOUT=A
 file://RESTORE DD DSN=BACKUP.CATALOGS(-1),DISP=OLD file://SYSIN DD *
 RESTORE
 ALIAS
 CAT(CATALOG.MVSICF1.VSYSC06)


 Lizette


 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Jake anderson
 Sent: Tuesday, October 08, 2013 6:25 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: Catalog Rebuild JCL

 I agree the aliases do Point to Master catalog. Here I do not use IDCAMS
 but
 I use CA CREW for catalog Resize. So for other system I have to perform 
a
 Redefine of aliases and Yes in our plex we have master catalog defined 
for
 each system and Usercatalogs are shared across the system. So for 
defining
 an alias I must be generating a IDCAMS control card using where I 
mention
 like :

 DEF ALIAS(NAME('ALIASNAME') REL('USERCATALOG) , so if I run this JCL on
 each
 system then the mastercatalog parameter is not required.

 So Just looking for a rexx exec which can extract the list from a PS
 file(where only alias name is present) and prepare a control card for
 IDCAMS.


 On Tue, Oct 8, 2013 at 6:33 PM, Hervey Martinez 
 hervey.marti...@custserv.com wrote:

  Jake,
 
  The alias' are in the master catalog not in the user catalog. If you
  have multiple master catalogs, then the user cat needs to be detached
  from the other masters before you do the resize and after the re-org;
  then, it has to be re-connected back to those same masters.
 
  Regards,
 
  Hervey
 
 
  -Original Message-
  From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
  On Behalf Of Jake anderson
  Sent: Tuesday, October 08, 2013 8:57 AM
  To: IBM-MAIN@LISTSERV.UA.EDU
  Subject: Catalog Rebuild JCL
 
  Hello,
 
  I am in the process of re-sizing a user catalog and I see there are
  almost
  2000+ aliases defined to it. This is for one of our plex where we have
  2000+ 4
  systems and I understand during restore the aliases will be too
  restored on the system where I am running the JCL(for catalog resize).
  For other System I have to prepare a define alias JCL for 2000+ 
aliases.
 
  I am looking for some REXX which can help me in extracting the aliases
  and prepare  control card to re-define the same aliases pointing to
  the Usercatalog.
 
  Could someone point me to some sample Rexx which can help me ?
 
  Jake


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu

Re: Catalog Rebuild JCL

2013-10-08 Thread John Eells

(Reposting to the list server.)

Skip Robinson wrote:
snip

 OTOH do not move the user catalog to a different volume. You would then
 have to disconnect the user catalog from each master, at which point you
 would lose all alias definitions and have to redefine them after
 reconnecting. That would be an arduous effort.

DFSMSdfp Development was kind enough to make this less ardous for those 
who can wait for z/OS V2.1; from the announcement letter:


Also, new support enables you to preserve user catalog connector alias 
entries when you temporarily delete a user catalog so they need not be 
redefined when the catalog is reallocated, and prevent new catalog 
entries using those aliases from being defined until the new catalog is 
available. This is intended to simplify the reallocation of user catalogs.


--
John Eells
z/OS Technical Marketing
IBM Poughkeepsie
ee...@us.ibm.com

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Catalog Rebuild JCL

2013-10-08 Thread efinnell15
Think CBT File 542 RCNVTCAT will do most of the heavy lifting here.
The doc(attached) says tested thru V1.13


In a message dated 10/08/13 12:44:01 Central Daylight Time, ee...@us.ibm.com 
writes:
Also, new support enables you to preserve user catalog connector alias 
entries when you temporarily delete a user catalog so they need not be 
redefined when the catalog is reallocated, and prevent new catalog 
entries using those aliases from being defined until the new catalog is 
available. This is intended to simplify the reallocation of user catalogs

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN//***FILE 542 is from Alastair Gray and contains some handy tools   *   FILE 542
//*   (so far), which are described below.  One is a REXX   *   FILE 542
//*   which is an MCNVTCAT replacement, and the other is*   FILE 542
//*   a tool to find all the catalog alias names in the *   FILE 542
//*   system.  There's some more too... *   FILE 542
//* *   FILE 542
//*  The overview for this PDS  *   FILE 542
//* *   FILE 542
//*  Here are a number of bits of handy REXX code, the list *   FILE 542
//*  may well grow as I tidy up some of my REXX library.*   FILE 542
//* *   FILE 542
//*  There are some of samples of using the DFSMS/MVS   *   FILE 542
//*  Catalog Search Interface (CSI). More detail can be *   FILE 542
//*  found in : *   FILE 542
//* *   FILE 542
//*  DFSMS/MVS - Managing Catalogs - Document Number*   FILE 542
//*  SC26-4914 Appendix D Catalog Search Interface User's  *   FILE 542
//*  Guide *   FILE 542
//* *   FILE 542
//*  The original code was derived from the IBM provided*   FILE 542
//*  sample in 'SYS1.SAMPLIB(IGGCSIRX)' but has been heavily*   FILE 542
//*  modified (including correcting the bugs in that code). *   FILE 542
//* *   FILE 542
//*  Hopefully it is now correct and should work as *   FILE 542
//*  intended.  However as usual, no guarantee is implied.  *   FILE 542
//* *   FILE 542
//*  All code is designed for either foreground or background   *   FILE 542
//*  execution. *   FILE 542
//* *   FILE 542
//*  The pieces are as follows :*   FILE 542
//* *   FILE 542
//*  #DELDUP  - Edit macro to delete duplicate lines*   FILE 542
//* *   FILE 542
//*  #DELNDUP - Edit macro to delete non-duplicate lines*   FILE 542
//* *   FILE 542
//*  ALICOUNT - This simply finds all of the aliases in the *   FILE 542
//* system and gives a count of datasets that   *   FILE 542
//* are using them.  Handy for finding all those*   FILE 542
//* redundant aliases cluttering up your*   FILE 542
//* mastercat.  *   FILE 542
//* *   FILE 542
//*  ALIMAKE  - So you have just disconnected a usercat and *   FILE 542
//* lost all the alises ... Reconnect the catalog   *   FILE 542
//* and then run this to get a DEF ALIAS for all*   FILE 542
//* the 'suitable' HLQs in the catalog. *   FILE 542
//* *   FILE 542
//*  BODGECAT - A sample workaround for a LISTDS on an  *   FILE 542
//* uncataloged dsn.*   FILE 542
//* *   FILE 542
//*  CSICODE  - Base CSI code, setup to be modified for other   *   FILE 542
//* functions. As provided, it simply lists ALL *   FILE 542
//* entries.*   FILE 542
//*