I've taken over at the Storage Admin, and I'm noticing these datasets are being directed to an SMS STORCLAS and a POOL of volumes, this is OK, but these datasets are not being cleaned up. I've looked at the SMS STORCLAS,STORGRP constructs and I cannot see a setting or a way to tell SMS to deallocate, clean these datasets up after task ends. The person who wrote the routines have these datasets going to the same STORCLAS as all other datasets "STANDARD" and the STORGRP routine decides where to direct these datasets.
WHEN (&DSTYPE = 'TEMP') /* TEMP DATA SETS TO *
DO /* TEMPPOOL STORAGE GRP. *
IF (&STORCLAS = 'LCLNATVE')
THEN DO
SET &STORGRP='LCLNATVE'
EXIT CODE(0)
END
ELSE DO
SET &STORGRP='DPTPPOOL'
EXIT CODE(0)
END
END
DO /* TEMPPOOL STORAGE GRP. *
IF (&STORCLAS = 'LCLNATVE')
THEN DO
SET &STORGRP='LCLNATVE'
EXIT CODE(0)
END
ELSE DO
SET &STORGRP='DPTPPOOL'
EXIT CODE(0)
END
END
I have modified the routines from what I've done at a previous shop, but I'm not sure if I'll get the results I desire.
Amy question is; do all SMS managed VOLUMES have to be mounted PRIVATE? can I still mount them PUBLIC?
below is the code I've modified to ahndle temporary datssets and vio allocation.
IF (&DSTYPE = 'TEMP' && &UNIT = &VIOUNT)
THEN DO
SELECT
WHEN (&DSORG = 'VS') SET &STORCLAS = 'SCTEMP'
OTHERWISE
SET &STORCLAS = 'SCVIO'
END
EXIT CODE(0)
END
THEN DO
SELECT
WHEN (&DSORG = 'VS') SET &STORCLAS = 'SCTEMP'
OTHERWISE
SET &STORCLAS = 'SCVIO'
END
EXIT CODE(0)
END
and the storgrp code does
WHEN (&STORCLAS = 'SCTEMP')
DO
SET &STORGRP = 'SGTEMP'
EXIT CODE(0)
DO
SET &STORGRP = 'SGTEMP'
EXIT CODE(0)
but I still don't know if these datasets will automagically clean themselves up, any help would be appricated, thanks
Peter