Hi there,
I'm struggling to produce a report that would generate IDCAMS delete stmts of ISPPROF data sets for users that don't exists anymore.
Our naming convention for ISPPROF data set is as follows: xxxxTSO.userid.ISPPROF
I managed to get a list from a CKFREEZE data set as follows:
NEWLIST TYPE=DSN NAME=DSNLIST NOPAGE
SELECT DSN=%%%%TSO.*.ISPPROF
SELECT DSN=%%%%TSO.*.ISRPROF
SORTLIST SYSTEM VOL DSN
This gives f.i. the following report:
COMMAND ===>
****************************************
SSTE EEE001 ECEMTSO.U14794.ISPPROF
SSTE MIGRAT AABBTSO.A0KB144.ISPPROF
SSTE MIGRAT AABBTSO.A0KB425.ISPPROF
SSTE MIGRAT AABBTSO.A000282.ISPPROF
SSTE MIGRAT AABBTSO.A001949.ISPPROF
SSTE MIGRAT AABBTSO.A001950.ISPPROF
I would like to lookup via a carla query if the userid (=second level qualifier) exists in RACF.
If not, I need to generate a 'DELETE' datasetname stmt which can be executed via an IDCAMS job.
Anyone an idea on how to accomplish this?
thank you for your help.
------------------------------
Luc Martens
------------------------------