Delete PAGESPACE in other catalog

2008-07-22 Thread John Mattson
zOS 1.9 IDCAMS manual has a fine example of how to deFINE a 
pagespace in another system's Master catalog.  Excellent
DEFINE ALIAS (NAME(SYS2) RELATE(MASTCAT.SYSTEM2)) 
DEFINE PAGESPACE (NAME(SYS2.PAGE2) CYLINDERS(10) VOLUMES(VSER05) 
ALTER SYS2.PAGE2 NEWNAME(SYS1.PAGE2) CATALOG(MASTCAT.SYSTEM2) 
ALTER SYS2.PAGE2.DATA NEWNAME(SYS1.PAGE2.DATA) CATALOG(MASTCAT.SYSTEM2) 
But how to deLETE one of these in another system's master catalog? 
 
I have tried to DEFINE ALIAS, DELETE PAGESPACE with CAT(, tried 
ALTER the pagespace to an SSA aliwas like SYS2 in the example above, but 
no luck.  Anyone know this trick? 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread Pat Mihalec
Here is some JCL I have used in the past 
//IDCAMS   EXEC  PGM=IDCAMS 
//STEPCAT DD DSN=CATALOG.MASTER.VCATT28,DISP=SHR 
//SYSPRINT DD  SYSOUT=* 
//SYSINDD  * 
 DELETE - 
PAGE.TEST.COMMON - 
PAGESPACE - 
PURGE - 
CATALOG(CATALOG.MASTER.VCATT28) 

Pat Mihalec
Rush University Medical Center
Senior System Programmer
(312) 942-8386
[EMAIL PROTECTED]



John Mattson <[EMAIL PROTECTED]> 
Sent by: IBM Mainframe Discussion List 
07/22/2008 01:46 PM
Please respond to
IBM Mainframe Discussion List 


To
IBM-MAIN@BAMA.UA.EDU
cc

Subject
Delete PAGESPACE in other catalog






zOS 1.9 IDCAMS manual has a fine example of how to deFINE a 
pagespace in another system's Master catalog.  Excellent
DEFINE ALIAS (NAME(SYS2) RELATE(MASTCAT.SYSTEM2)) 
DEFINE PAGESPACE (NAME(SYS2.PAGE2) CYLINDERS(10) VOLUMES(VSER05) 
ALTER SYS2.PAGE2 NEWNAME(SYS1.PAGE2) CATALOG(MASTCAT.SYSTEM2) 
ALTER SYS2.PAGE2.DATA NEWNAME(SYS1.PAGE2.DATA) CATALOG(MASTCAT.SYSTEM2) 
But how to deLETE one of these in another system's master catalog? 

 
I have tried to DEFINE ALIAS, DELETE PAGESPACE with CAT(, tried 
ALTER the pagespace to an SSA aliwas like SYS2 in the example above, but 
no luck.  Anyone know this trick? 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread McKown, John
> -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Pat Mihalec
> Sent: Tuesday, July 22, 2008 1:51 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: Delete PAGESPACE in other catalog
> 
> Here is some JCL I have used in the past 
> //IDCAMS   EXEC  PGM=IDCAMS 
> //STEPCAT DD DSN=CATALOG.MASTER.VCATT28,DISP=SHR 
> //SYSPRINT DD  SYSOUT=* 
> //SYSINDD  * 
>  DELETE - 
> PAGE.TEST.COMMON - 
> PAGESPACE - 
> PURGE - 
> CATALOG(CATALOG.MASTER.VCATT28) 
> 
> Pat Mihalec

H no more STEPCAT allowed!

My page datasets are all named PAGE.&SYSNAME.stuff. I use MultiLevel
aliases so that I can do a DEFINE alias so that PAGE.&SYSNAME in this
system's master catalog points to &SYSNAME's master catalog.

Another possibility is to simply create the PAGESPACE in the current
system's master catalog. Then, just do a DEFINE PAGESPACE ... RECATALOG
CAT(other.mastercat) . One nice thing is that a PAGESPACE can be defined
in multiple catalogs at the same time.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread Matthew Stitt
On Tue, 22 Jul 2008 13:55:38 -0500, McKown, John
<[EMAIL PROTECTED]> wrote:

Close, but no cigar.

//STEP01  EXEC PGM=IDCAMS  
//SYSOUT   DD SYSOUT=* 
//SYSPRINT DD SYSOUT=* 
//DISK1DD UNIT=3390,VOL=SER=H5PAG1,DISP=SHR
//SYSINDD *
 DELETE PAGE.AQH2.PLPA -   
 PAGESPACE -   
 FILE(DISK1) - 
 CATALOG(SYS1.ZOS17.MCAT)  

>> -Original Message-
>> From: IBM Mainframe Discussion List
>> [mailto:[EMAIL PROTECTED] On Behalf Of Pat Mihalec
>> Sent: Tuesday, July 22, 2008 1:51 PM
>> To: IBM-MAIN@BAMA.UA.EDU
>> Subject: Re: Delete PAGESPACE in other catalog
>>
>> Here is some JCL I have used in the past
>> //IDCAMS   EXEC  PGM=IDCAMS
>> //STEPCAT DD DSN=CATALOG.MASTER.VCATT28,DISP=SHR
>> //SYSPRINT DD  SYSOUT=*
>> //SYSINDD  *
>>  DELETE -
>> PAGE.TEST.COMMON -
>> PAGESPACE -
>> PURGE -
>> CATALOG(CATALOG.MASTER.VCATT28)
>>
>> Pat Mihalec
>
>H no more STEPCAT allowed!
>
>My page datasets are all named PAGE.&SYSNAME.stuff. I use MultiLevel
>aliases so that I can do a DEFINE alias so that PAGE.&SYSNAME in this
>system's master catalog points to &SYSNAME's master catalog.
>
>Another possibility is to simply create the PAGESPACE in the current
>system's master catalog. Then, just do a DEFINE PAGESPACE ... RECATALOG
>CAT(other.mastercat) . One nice thing is that a PAGESPACE can be defined
>in multiple catalogs at the same time.
>
>--
>John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread Ted MacNEIL
>//DISK1DD UNIT=3390,VOL=SER=H5PAG1,DISP=SHR

You do not need to statically allocate DISK DD's to IDCAMS steps.
-
Too busy driving to stop for gas!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread Matthew Stitt
You do if the dataset is not accessible through the standard catalog search
order.  And certain commands require it.

On Tue, 22 Jul 2008 20:21:21 +, Ted MacNEIL <[EMAIL PROTECTED]> wrote:

>>//DISK1DD UNIT=3390,VOL=SER=H5PAG1,DISP=SHR
>
>You do not need to statically allocate DISK DD's to IDCAMS steps.
>-

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-22 Thread Staller, Allan
Ding ding ding! We have a winner.
Of course this bypasses the check that prevents deleting an active page
dataset. 

Be vewy vewy careful! heheheheheheheh


//STEP01  EXEC PGM=IDCAMS  
//SYSOUT   DD SYSOUT=* 
//SYSPRINT DD SYSOUT=* 
//DISK1DD UNIT=3390,VOL=SER=H5PAG1,DISP=SHR
//SYSINDD *
 DELETE PAGE.AQH2.PLPA -   
 PAGESPACE -   
 FILE(DISK1) - 
 CATALOG(SYS1.ZOS17.MCAT)  


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-23 Thread Mark Zelden
No way!  Not even from another system.

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html



On Tue, 22 Jul 2008 15:59:48 -0500, Staller, Allan <[EMAIL PROTECTED]>
wrote:

>Ding ding ding! We have a winner.
>Of course this bypasses the check that prevents deleting an active page
>dataset.
>


>Be vewy vewy careful! heheheheheheheh
>
>
>//STEP01  EXEC PGM=IDCAMS
>//SYSOUT   DD SYSOUT=*
>//SYSPRINT DD SYSOUT=*
>//DISK1DD UNIT=3390,VOL=SER=H5PAG1,DISP=SHR
>//SYSINDD *
> DELETE PAGE.AQH2.PLPA -
> PAGESPACE -
> FILE(DISK1) -
> CATALOG(SYS1.ZOS17.MCAT)
>
>
>--
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-23 Thread Arthur Gutowski
On Tue, 22 Jul 2008 13:55:38 -0500, McKown, John 
<[EMAIL PROTECTED]> wrote:

>Another possibility is to simply create the PAGESPACE in the current
>system's master catalog. Then, just do a DEFINE PAGESPACE ... RECATALOG
>CAT(other.mastercat) . One nice thing is that a PAGESPACE can be defined
>in multiple catalogs at the same time.

I would be surprised if DIAGNOSE/EXAMINE did not hiccup on this.  Lessons 
from the past... PAGESPACE is VSAM and therefore requires a VVR entry.  
Duplicate catalog entries create duplicate VVR records, leading to problems 
not with normal access, but with DELETE/DEFINE.

Personally, I prefer your MLA suggestion.

Regards,
Art Gutowski
Ford Motor Comany

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-23 Thread Mark Zelden
On Wed, 23 Jul 2008 07:41:00 -0500, Arthur Gutowski <[EMAIL PROTECTED]> wrote:

>On Tue, 22 Jul 2008 13:55:38 -0500, McKown, John
><[EMAIL PROTECTED]> wrote:
>
>>Another possibility is to simply create the PAGESPACE in the current
>>system's master catalog. Then, just do a DEFINE PAGESPACE ... RECATALOG
>>CAT(other.mastercat) . One nice thing is that a PAGESPACE can be defined
>>in multiple catalogs at the same time.
>
>I would be surprised if DIAGNOSE/EXAMINE did not hiccup on this.  Lessons
>from the past... PAGESPACE is VSAM and therefore requires a VVR entry.
>Duplicate catalog entries create duplicate VVR records, leading to problems
>not with normal access, but with DELETE/DEFINE.
>

It does spit out a warning when you do this.I know because we catalog our
IODFs that way and I catalog my zFS files that way in one environment that
shares the sysres set but spans multiple sysplexes / monoplexes / master
catalogs.   Someday I may change that to do something with symbolicrelate
instead, but this hasn't caused any problems so far.

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-23 Thread Mark Zelden
On Wed, 23 Jul 2008 07:34:13 -0500, Mark Zelden <[EMAIL PROTECTED]>
wrote:

>No way!  Not even from another system.
>

After thinking about that I think I was wrong, unless something has changed
in z/OS.  I recall someone crashing a sanbox LPAR that way at a client of mine 
(about 8 or 9 years ago).  

But I'm sure you can't delete one from the same system you  are running on. 

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-24 Thread Arthur Gutowski
On Wed, 23 Jul 2008 08:13:09 -0500, Mark Zelden 
<[EMAIL PROTECTED]> wrote:

>After thinking about that I think I was wrong, unless something has changed
>in z/OS.  I recall someone crashing a sanbox LPAR that way at a client of 
mine
>(about 8 or 9 years ago).
>
>But I'm sure you can't delete one from the same system you  are running on.

The enhanced integrity introduced with 1.? prevents you from IPLing a system 
with someone else's page datasets, but I do not believe it protects you from 
deleting an another active system's page datasets.  If you're in a SYSPLEX, I 
should think the GLOBAL ENQ would prevent this, unless it is EXCLuded.  
Outside of a sysplex, not so much.

Art Gutowski
Ford Motor Company
"Outside of a dog, a book is man's best friend.
Inside of a dog, it's too dark to read."  - Groucho Marx

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-24 Thread Arthur Gutowski
On Wed, 23 Jul 2008 08:05:15 -0500, Mark Zelden 
<[EMAIL PROTECTED]> wrote:

>It does spit out a warning when you do this.I know because we catalog 
>IODFs that way and I catalog my zFS files that way in one environment that
>shares the sysres set but spans multiple sysplexes / monoplexes / master
>catalogs.   Someday I may change that to do something with symbolicrelate
>instead, but this hasn't caused any problems so far.

We use a common usercatalog for IODF's across sysplexes / monoplexes.  
Same for non-root, non-target HFS'.  Sysplex root and IBM supplied HFS' are 
SYS1, so non-managed, no VVDS considerations.  Just easier for us.

Regards,
Art Gutowski
Ford Motor Company

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-24 Thread Mark Zelden
On Thu, 24 Jul 2008 08:30:41 -0500, Arthur Gutowski <[EMAIL PROTECTED]> wrote:

>On Wed, 23 Jul 2008 08:13:09 -0500, Mark Zelden
><[EMAIL PROTECTED]> wrote:
>
>>After thinking about that I think I was wrong, unless something has changed
>>in z/OS.  I recall someone crashing a sanbox LPAR that way at a client of
>mine
>>(about 8 or 9 years ago).
>>
>>But I'm sure you can't delete one from the same system you  are running on.
>
>The enhanced integrity introduced with 1.? prevents you from IPLing a system
>with someone else's page datasets, 

Correct.  That was the first thing I thought about when I replied without
thinking it over.

>but I do not believe it protects you from
>deleting an another active system's page datasets.  If you're in a SYSPLEX, I
>should think the GLOBAL ENQ would prevent this, unless it is EXCLuded.
>Outside of a sysplex, not so much.
>

Yes.  Outside a sysplex would be prevented also with MIM (MII) as long as you
are propagating SYSZILRD.

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Delete PAGESPACE in other catalog

2008-07-24 Thread Mark Zelden
On Thu, 24 Jul 2008 08:37:33 -0500, Arthur Gutowski <[EMAIL PROTECTED]> wrote:

>On Wed, 23 Jul 2008 08:05:15 -0500, Mark Zelden
><[EMAIL PROTECTED]> wrote:
>
>>It does spit out a warning when you do this.I know because we catalog
>>IODFs that way and I catalog my zFS files that way in one environment that
>>shares the sysres set but spans multiple sysplexes / monoplexes / master
>>catalogs.   Someday I may change that to do something with symbolicrelate
>>instead, but this hasn't caused any problems so far.
>
>We use a common usercatalog for IODF's across sysplexes / monoplexes.
>Same for non-root, non-target HFS'.  Sysplex root and IBM supplied HFS' are
>SYS1, so non-managed, no VVDS considerations.  Just easier for us.
>

Do you share HFS across sysplex at all?  If so, what will you do for zFS?

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Sysplex HFS/zFS Sharing; was Re: Delete PAGESPACE in other catalog

2008-07-25 Thread Arthur Gutowski
On Thu, 24 Jul 2008 12:16:56 -0500, Mark Zelden 
<[EMAIL PROTECTED]> wrote:

>On Thu, 24 Jul 2008 08:37:33 -0500, Arthur Gutowski 
<[EMAIL PROTECTED]> wrote:
>>We use a common usercatalog for IODF's across sysplexes / monoplexes.
>>Same for non-root, non-target HFS'.  Sysplex root and IBM supplied HFS' are
>>SYS1, so non-managed, no VVDS considerations.  Just easier for us.
>
>Do you share HFS across sysplex at all?  If so, what will you do for zFS?

Only the sysplex ROOT and one other common mountpoint-only HFS so far.  
We use symlinks to redirect mounts to this directory to a system-specifc 
mountpoint-only HFS off the sysplex ROOT.  It's unorthodox, but it was our 
only way around certain problems.

We haven't yet started sharing SYSRES, though this is read-only.  To date we 
only have two zFS', and they are system-specific (non-shared).  

Now that we have our pricing plex, I need to sit down with our "USS guy" and 
hash out what zFS will do for/to us in moving from "BronzePlex" to "GoldPlex".

If there's interest, I can post a follow-up to the list, else if you'll be at 
SHARE 
in San Jose, we can have a "sidebar" or two at SCIDS...

Regards,
Art Gutowski
Ford Motor Company

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Sysplex HFS/zFS Sharing; was Re: Delete PAGESPACE in other catalog

2008-07-25 Thread Mark Zelden
On Fri, 25 Jul 2008 08:11:44 -0500, Arthur Gutowski <[EMAIL PROTECTED]> wrote:

>If there's interest, I can post a follow-up to the list, else if you'll be
at SHARE
>in San Jose, we can have a "sidebar" or two at SCIDS...
>

Yes, please seek me out at SHARE (if you don't know what I look like, check
the bio on my web site). I finally got the approval just this week and 
have made all the arrangements.  

For all my other friends and people I know from IBM-MAIN who will be at
SHARE... please do the same!  

Regards,

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html