The TPX batch component allows you to report on and update information in the TPX Administration database.
There is a request to report on information in the ACT (Application Characteristics Table), how can this be done?
Release: -TPX-Session Management 5.4
Component:
Here are three report examples listing all applications in:
EXAMPLE 1: Generate a report on all sessions in ACT named ACTZZ
//BATCHADM EXEC TPX,VNODE='*BATCH*' //EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(1,1)) //RPTFILE DD SYSOUT=* //* //SYSIN DD * C C extract from ACT C EXTRACT GIVING(EXTFILE) ACT (VACTTBL(ACTZZ))
SET RTITLE1 ' ACTNAME ACTLABEL ACTSESS VACTTBL' SET RTITLE2 ' ======== =================== ========= ========' REPORT GIVING(RPTFILE) USING (EXTFILE) ((' &ACTNAME' ' &ACTLABEL ' ' &ACTSESS' ' &VACTTBL'))
EXAMPLE 2: Generate a report on all sessions any ACT starting with ACTZ*
//BATCHADM EXEC TPX,VNODE='*BATCH*' //EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(1,1)) //RPTFILE DD SYSOUT=* //* //SYSIN DD * C C extract from ACT C EXTRACT GIVING(EXTFILE) ACT (VACTTBL(ACTZ----)) SET RTITLE1 ' ACTNAME ACTLABEL ACTSESS VACTTBL' SET RTITLE2 ' ======== =================== ========= ========' REPORT GIVING(RPTFILE) USING (EXTFILE) ((' &ACTNAME' ' &ACTLABEL ' ' &ACTSESS' ' &VACTTBL'))
EXAMPLE 3: Generate a report on all sessions in ACT named ACTZZ or ACTAA
//BATCHADM EXEC TPX,VNODE='*BATCH*' //EXTFILE DD UNIT=SYSDA,SPACE=(CYL,(1,1)),DISP=(MOD) //RPTFILE DD SYSOUT=* //* //SYSIN DD * C C extract from ACT C EXTRACT GIVING(EXTFILE) ACT (VACTTBL(ACTZZ)) EXTRACT GIVING(EXTFILE) ACT (VACTTBL(ACTAA)) SET RTITLE1 ' ACTNAME ACTLABEL ACTSESS VACTTBL' SET RTITLE2 ' ======== =================== ========= ========' REPORT GIVING(RPTFILE) USING (EXTFILE) ((' &ACTNAME' ' &ACTLABEL ' ' &ACTSESS' ' &VACTTBL'))
NOTE: The above examples can also be found in the attached zip file.
See the following for the ACT fields that could be used in reporting.