Dean, my logic was along the lines of:
1. UNIT not valid? Then SC=null (null unit IS valid here)
2. UNIT=TAPE? Then SC=null (we don't SMS manage tapes)
3. Stuff we know we don't want to manage? SC=null (multiple tests...)
4. Stuff we want to manage? Set SC=whatever (again multiple tests, multiple
SCs)
5. Else SC=null
In this case, the UNIT=AFF dataset got a null SC via #5. Where I got bit is
when the dataset name became SMS managed if on DASD, thus the UNIT=AFF
dataset was now getting a SC set by #4.
I can't tell from your snippets if this will bite you or not. Sorry.
Tom Chicklon
----------------------------------------------
Thank you for bringing this to my attention. These are the filterlists I
have defined:
FILTLIST DASD_UNITS INCLUDE('3390','SYSDA','SYSALLDA', '')
FILTLIST TAPE_UNITS INCLUDE('3590*','MAGSTAR','T3590')
FILTLIST DB2_VOL INCLUDE(* )
In the select logic I check for the dataset name being passed and the
DASD units. So could I get burned by this example ?
We don't SMS manage any tape and the filter list defined for the tape
units is no where in the logic. We just defined it in the event we might
use it someday.
--------------------------------------------
Dean, there's may be an unintended consequence to be careful of now that
you added null to the list of valid unit types.
If you have a job that stacks datasets on a single tape volume by using
UNIT=AFF=ddname such as the following:
//TAPEV01 DD DSN=SDR.BKUP.ML1001(+1),DCB=(SYS2.DSCB),
// UNIT=LTAPE,DISP=(NEW,CATLG),LABEL=(1,SL),
// VOL=(,RETAIN)
//TAPEV02 DD DSN=SDR.BKUP.DBA002(+1),DCB=(SYS2.DSCB),
// DISP=(NEW,CATLG),LABEL=(2,SL),
// UNIT=AFF=TAPEV01,VOL=(,RETAIN,REF=*.TAPEV01)
The ACS routine will have null for the unit for TAPEV02 .
I burned myself by changing an HLQ from non-SMS to SMS managed, and with
the logic as it was in my SMS routines, I was setting a storage class
for the second tape data set (we don't SMS manage tapes) and the
allocation ended up failing.
May not impact you at all, just something to look to make sure it
doesn't bite you.
Tom Chicklon
------------------------------
<snip>
I modified the ACS routine to include ''' (quote quote) in the filter
list of valid DASD units.
</snip>
----------------------------------------------------------------------
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