View previous topic :: View next topic
|
Author |
Message |
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
expat wrote: |
To allocate a dataset in a non SMS environment you need access to a specific SMS STORCLAS.
Confused ? - You need an SMS STORCLAS to write a non SMS dataset
|
Not really correct. To create a NON-SMS managed dataset it needs to have attributes that cause the STORAGE CLASS ACS routine to not set a l storclass.
Some shops implement this by code in the ACS routine like this:
Code: |
IF &STORCLASS='NONSMS' THEN SET STORCLAS='' |
But there are many other ways that the ACS routines can also have a
Code: |
THEN SET STORCLAS='' |
For instance it may just be coded that if you specify a certain (NONSMS) volser in your jcl then the acs code will honour the allocation. eg
Code: |
IF &ANYVOL='SYS%%%' THEN SET STORCLAS='' |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Not really correct. |
Of course it is correct, in every occurence the STORCLAS is set to '' |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
Well expat, I just showed how it can be done without using any STORCLAS, so it isn't correct.
Any dataset that has NO STORCLAS set becomes non-SMS managed.
So it can be done without you needing access to any specific SMS STORCLAS. The ACS routines just have to be coded correctly.
By using:
Code: |
IF &ANYVOL='SYS%%%' THEN SET STORCLAS='' |
you can bypass the need... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yeah, but it's all site specific isn't it.
I never allow a non SMS allocation except to the chosen few, i.e. Storage, sysprogs, ( and dare I say it, even a couple of trusted JCLMs ).
I've always set it up that to be non SMS managed it must pass the filter for accepted users to STORCLAS=NONSMS, and of course filtered by DSN.
The way that you have shown - maybe there's more code to it - would allow ANYONE to allocate non SMS. Something I've found to be a real pain in past when people find out that they can - they almost certainly will - grab space anywhere. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
And then they often complain when their data is either relocated or removed.
For my $.02, following the storage management standards should be a condition of continued employment. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
And then they often complain when their data is either relocated or removed. |
But that's the fun part of storage admin, tidying up the miscreants |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
I actually use:
Code: |
WHEN (&USER=&TRUSTED_USERS AND &STORCLAS='NONSMS' AND ANYVOL=&NON_SMS_VOLS)
SET &STORCLAS='' |
My only point was that it doesn't have to be done that way. |
|
Back to top |
|
|
|