Removing FMID's from a CSI using CA-CSM

Document ID : KB000107933
Last Modified Date : 26/07/2018
Show Technical Document Details
Question:
Is it possible to remove FMID frim a CSI using CSM?
Answer:
CA-CSM can't remove an FMID and all it's related data sets from a CSI but it's quite easy using this method: Create a FMID that deletes the FMID you want to remove from the CSI. This is the format: 

++FUNCTION(FMID000). 
++VER(Z038) DELETE(DELFMID). 

FMID000 - The FMID ID that will uninstall/remove an FMID installed in the CSI.
DELFMID - The FMID ID to be uninstalled/removed.
 
Note that an FMID ID has a maximum of 7 characters.

Here's an example:
++FUNCTION(XFGE000). 
++VER(Z038) DELETE(CFGE000). 

Receiving, applying and accepting XFGE000 will cleanly remove CFGE000. 
Be sure the correct target and distribution zones are specified. 

//RECEIVE EXEC PGM=GIMSMP,REGION=0M 
//* EXPECTED RETURN CODE: 00 
//SMPPTFIN DD * 
++FUNCTION(XFGE000). 
++VER(Z038) DELETE(CFGE000). 
/* 
//SMPHOLD DD DUMMY 
//SMPCSI  DD DISP=SHR,DSN=hlq.CSI 
//SMPCNTL DD * 
SET BOUNDARY(GLOBAL) . 
RECEIVE SELECT (XFGE000). 
/* 
//APPLY EXEC PGM=GIMSMP,REGION=0M,PARM='DATE=U' 
//* EXPECTED RETURN CODE: 00 
//SMPLOGA DD SYSOUT=* 
//SMPCSI  DD DISP=SHR,DSN=hlq.CSI 
//SMPCNTL DD * 
SET BOUNDARY(CAIT). 
APPLY SELECT (XFGE000) .
/* 
//ACCEPT EXEC PGM=GIMSMP,REGION=0M,PARM='DATE=U' 
//* EXPECTED RETURN CODE: 00 
//SMPLOGA DD SYSOUT=* 
//SMPCSI  DD DISP=SHR,DSN=hlq.CSI 
//SMPCNTL DD * 
SET BOUNDARY(CAID). 
ACCEPT SELECT (XFGE000) . 
/*