This procedure is called by DBBUILD when you use the -revoke option. It returns REVOKE statements for all permissions for objects in abasysobjects, either all objects, or objects in a specific subsystem.
Parameter:
@subsystem ap_subsystem = NULL