How to Delete Multiple User Libraries with CA Roscoe?

Document ID : KB000024365
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

I deleted the signon profiles, but it did not delete the users' members. Is this a 2 step process?

Answer: 

This is a 2 step process. Many times when you delete users' signon keys, you may want to keep the members because they contain useful information. When that is not the case, you may run a ROSMAILS,PARM='DELETE'. When you specify PARM='DELETE' ROSMAILS will delete members that are unowned (the signon keys have been deleted).

Here is sample JCL for deleting unowned members. Customize this JCL with the name and correct number of your Roslibs.

//JOBCARD
//ROSMAILS EXEC PGM=ROSMAILS,REGION=4M,PARM='DELETE' 
//STEPLIB  DD  DSN=ROSCOE.RO60.RO60LIB,DISP=SHR
//STEPLIB  DD  DSN=ROSCOE.RO60.RO60LIB,DISP=SHR
//ROSLIB00 DD  DSN=ROSCOE.ROSLIB00,DISP=SHR
//ROSLIB01 DD  DSN=ROSCOE.ROSLIB01,DISP=SHR
//ROSLIB02 DD  DSN=ROSCOE.ROSLIB02,DISP=SHR
//ROSLIB03 DD  DSN=ROSCOE.ROSLIB03,DISP=SHR
//SORTLIB  DD  DSN=SYS1.SORTLIB,DISP=SHR
//SORTIN   DD  UNIT=SYSDA,SPACE=(TRK,(3,3)),
//             DCB=(LRECL=136,RECFM=FB,BLKSIZE=1360)
//SORTWK01 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SORTWK02 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SORTWK03 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SORTWK04 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SORTWK05 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SORTWK06 DD  UNIT=SYSDA,SPACE=(TRK,5,,CONTIG)
//SYSOUT   DD  SYSOUT=*
//SYSPRINT DD  SYSOUT=*
//REPORT   DD  SYSOUT=*         ,DCB=(LRECL=121,RECFM=FBA,BLKSIZE=2420)
//SYSWARN  DD  SYSOUT=*         ,DCB=(LRECL=121,RECFM=FBA,BLKSIZE=2420)
//SYSIN    DD  DUMMY

This should be run when CA Roscoe is down. If you do run it when CA Roscoe is up, the space will not be freed up until you restart CA Roscoe again.

Refer to the CA Roscoe Programs and Utilities Guide, Section 4.7 for additional information.