Hi Shuhaibk,
This can be done using the REXX interface to SDSF. The manual can be found at the following link:
REXX INTERFACE REDBOOK
The outline of the method to be followed is as follows:
1. Use ISFCALLS to add the host command environment
2. Go to ST for the job status in the SDSF address using ISFEXEC to issue the command
3. System commands such as ST, DA, etc. will be executed via ISFEXEC
4. Filter commands suchas OWNER, PREFIX, etc. can be performed by setting SDSF variables (E.g. ISFPREFIX = "KMP*") followed by ADDRESS SDSF "ISFEXEC ST" to apply the filter
5. The columns displayed on ST such as Jobname, JOBID, etc. can be accessed via stems that are populated when ST is executed. E.g. JNAME.7 contains the name of the job on the sevent row of the JOBNAME column in the ST list
6. Line commands like P, ?, etc. can be performed via ISFACT using the Token stem
If I have confused you completely
![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
, have a look at the following SDSF manual which has an excellent chapter on "Using SDSF with REXX Programming" with loads of examples to perform routine SDSF tasks using REXX:
SDSF MANUAL
If you can specify your requirements in greater detail, I can steer you in the right direction.
Have fun!