This article describes how SQL can be used to generate DROP USER syntax for use in OCF/IDMSBCF.
Release: All supported releases.
This solution requires the SQL Option.
To produce "DROP USER" syntax with a SELECT statement in OCF/IDMSBCF, use the steps that follow:
DCUF SET DICTNAME SYSDIRL DCUF SET DBNAME SYSUSER CREATE SCHEMA IDMSSECU FOR NONSQL SCHEMA SYSDIRL.IDMSSECU VERSION 1 DBNAME SYSUSER;SELECT 'DROP USER ', AUTHID AS COLUMN1, ';' AS COLUMN2 FROM IDMSSECU.USER; *+ (CONST) COLUMN1 COLUMN2*+ ------- ------- -------*+ DROP USER USER1 ;*+ DROP USER USER2 ;*+ DROP USER USER3 ;*+ DROP USER USER4 ;*+ DROP USER USER5 ;DROP USER USER1 ;DROP USER USER2 ;DROP USER USER3 ;DROP USER USER4 ;DROP USER USER5 ;