Recently we needed to identify jobs on the Scoreboard for a specific agent with the goal of creating a REXX procedure to automate the process of identifying the jobs and resubmitting them.
I was looking at doing a Scoreboard Dump, but the information returned was much more than I wanted to parse through.
To identify these jobs is easy to do in CSF with a Free-form filter, but not as easy to code in REXX with a Scoreboard Dump and then parse for a specific agent.
But this has been simplified with the LCSF command.in the Release 11.4 CA Workload Automation ESP Edition Command reference Guide.
LCSF Command: List CSF Data
The LCSF command displays scoreboard information in an optimized format for further automated parsing.
For testing I stopped the ESP Agent on a Windows server.
Current View in CSF - Which provides me with the following information for jobs for a specific agent
Job Name Agent Name Gen# ApplName CCode HC System Status
___ WIN_TRIG NT_WKSP000550DD 7051 CHKAGENT - 0 Transmitter busy
___ WINCHECK NT_WKSP000550DD 7051 CHKAGENT - 0 Transmitter busy
___ WIN_TRIG NT_WKSP000550DD 7050 CHKAGENT - 0 Connection error
___ WINCHECK NT_WKSP000550DD 7050 CHKAGENT - 0 Transmitter busy
From Page Mode ( Copied/pasted my free-form filter from the CSF View )
LCSF (AGENT EQ 'NT_WKSP000550DD') AND (PNODE NE 'COMPLETE')
Next the ESPCOM command was issued with the FLUSH option
OPER ESPCOM DEST(NT_WKSP000550DD) FLUSH
Updated View in CSF
Job Name Agent Name Gen# ApplName CCode HC System Status
___ WIN_TRIG NT_WKSP000550DD 7051 CHKAGENT - 0 Message flushed
___ WINCHECK NT_WKSP000550DD 7051 CHKAGENT - 0 Message flushed
___ WIN_TRIG NT_WKSP000550DD 7050 CHKAGENT - 0 Message flushed
___ WINCHECK NT_WKSP000550DD 7050 CHKAGENT - 0 Message flushed
From Page Mode ( Reran the LCSF command and created output dataset (MSGFLUSH) )
LCSF (AGENT EQ 'NT_WKSP000550DD') AND (PNODE NE 'COMPLETE'
While the commands where done manually, the LCSF command could easily be built into a REXX procedure to automate the process.
After the SYMLIB was updated the final step would be to resubmit the jobs with the System Status of "Message Flushed".
The LCSF command greatly simplifies the REXX procedure by limiting the data that the would need to processed.