Record Auditing:
select
RECNAME,
RECDESCR,
AUDITRECNAME,
case when bitand(RECUSE,1) > 0 then 'Y' else 'N' END AUDIT_ADD,
case when bitand(RECUSE,2) > 0 then 'Y' else 'N' END AUDIT_CHANGE,
case when bitand(RECUSE,4) > 0 then 'Y' else 'N' END AUDIT_DELETE,
case when bitand(RECUSE,8) > 0 then 'Y' else 'N' END AUDIT_SELECTIVE
from PSRECDEFN
WHERE AUDITRECNAME != ' '
ORDER BY RECNAME;
Record Field Auditing:
select
F.RECNAME,
F.FIELDNUM,
F.FIELDNAME,
F.USEEDIT,
case when bitand(F.USEEDIT,8) > 0 then 'Y' else 'N' end AUDIT_FIELD_ADD,
case when bitand(F.USEEDIT,128) > 0 then 'Y' else 'N' end AUDIT_FIELD_CHANGE,
case when bitand(F.USEEDIT,1024) > 0 then 'Y' else 'N' end AUDIT_FIELD_DELETE
from
PSRECFIELD F
where
F.FIELDNAME = (
select
case when (
bitand(USEEDIT,8) > 0 or
bitand(USEEDIT,128) > 0 or
bitand(USEEDIT,1024) > 0
) then FIELDNAME else '' end as FIELD_AUDITED
from PSRECFIELD
where RECNAME = F.RECNAME
and FIELDNAME = F.FIELDNAME
)
order by F.RECNAME, F.FIELDNUM;
Refer to: http://peoplesoft.wikidot.com/what-is-audited
and to: http://xtrahot.chili-mango.net/uploaded_images/USEEDIT%20Flags-799884.jpg
select
RECNAME,
RECDESCR,
AUDITRECNAME,
case when bitand(RECUSE,1) > 0 then 'Y' else 'N' END AUDIT_ADD,
case when bitand(RECUSE,2) > 0 then 'Y' else 'N' END AUDIT_CHANGE,
case when bitand(RECUSE,4) > 0 then 'Y' else 'N' END AUDIT_DELETE,
case when bitand(RECUSE,8) > 0 then 'Y' else 'N' END AUDIT_SELECTIVE
from PSRECDEFN
WHERE AUDITRECNAME != ' '
ORDER BY RECNAME;
Record Field Auditing:
select
F.RECNAME,
F.FIELDNUM,
F.FIELDNAME,
F.USEEDIT,
case when bitand(F.USEEDIT,8) > 0 then 'Y' else 'N' end AUDIT_FIELD_ADD,
case when bitand(F.USEEDIT,128) > 0 then 'Y' else 'N' end AUDIT_FIELD_CHANGE,
case when bitand(F.USEEDIT,1024) > 0 then 'Y' else 'N' end AUDIT_FIELD_DELETE
from
PSRECFIELD F
where
F.FIELDNAME = (
select
case when (
bitand(USEEDIT,8) > 0 or
bitand(USEEDIT,128) > 0 or
bitand(USEEDIT,1024) > 0
) then FIELDNAME else '' end as FIELD_AUDITED
from PSRECFIELD
where RECNAME = F.RECNAME
and FIELDNAME = F.FIELDNAME
)
order by F.RECNAME, F.FIELDNUM;
Refer to: http://peoplesoft.wikidot.com/what-is-audited
and to: http://xtrahot.chili-mango.net/uploaded_images/USEEDIT%20Flags-799884.jpg