Accessing the Job Explorer view
To access the Job Explorer view, perform the following steps:
- Click View > Open View > Job Explorer.
Or
Press Ctrl+J to open the panel. - In the panel view, click JOB EXPLORER. You can see the search container in the Job Explorer panel. if the search container is not visible, click
.
Select any one of the following options to search for the jobs:- Show Search by Prefix/Owner
- Show Search by Job ID
If you have selected Show Search by Prefix/Owner, in the Prefix field, enter the prefix to search available output. An asterisk wildcard character can be used. If you have selected Show Search by Job ID, in the Job ID field, enter the job ID and search for the specific job.
In the Owner field, enter the job owner name to search available output. An asterisk wildcard character can be used and click Search.
The list of jobs is displayed. You can see the job count in the status bar.The default job limit is 500. If the number of jobs is more than the default value, you will see the following notification.
You can see the following fields for the jobs.
- Job: Job name
- Job ID: Job number
- Owner: Owner information
- Status: The status of the job. For example, Hold and Executing.
- Max RC: Return code of completed tasks
- Class: STC, TSU, or Batch indicator
- Programmer: JES2 programmer name
- Submit Time: Time the job was read in
- End Time: Time execution ended
- Position: The position of the job in the JES queue, if available. The position is equal to what SDSF displays, however, it will not usually have a non-zero value for jobs awaiting execution. This field is helpful when the execution job is being monitored while it is waiting for the initiator.
- Start Time: Time execution began
- CPU%: The percentage of CPU used by the job
- CPU Time: The amount of CPU time used by the job
- System: System name of the execution jobs
EXCPs: The jobs EXCP count
On selecting a job, you can also view the following information about the job:
- Records: Number of Lines in the file.
- Step: The environment where the lines got executed.
- DSID: File generation id. Unique id to identify the Job output file.
You can perform the following actions for the jobs:
Open a job
Double-click any field of the selected job row, and it will open the job file (<jobName>_<jobId>.jes) in the editor in READ-ONLY mode.
Or
Right-click on any field of the selected job and select Open. This will also open the job file in the editor in READ-ONLY mode.
Refresh a job
Right-click any field of the selected job and select Refresh. This refreshes the status of the selected job.
Cancel a job
Select a single or multiple jobs, right-click, and then select Cancel. This action cancels the executing jobs.
Extract a Job JCL
- Right-click any field of the selected job and click Extract Job JCL.
- The submitted JCL for that job is displayed in the editor.
- If you want to edit the JCL, then edit as required and submit the JCL from View > Command Palette > Workbench Explorer: Submit JCL from Active Editor.
It will submit the JCL with updated contents, but the original JCL will not change.
Resubmit a job
Resubmit job dynamically extracts the JCL and resubmits the job.
Right-click a job and click Resubmit. You will be able to resubmit the job for all statuses.
On re-submitting a job, you will see a notification message as Job <Job ID> submitted. If you click the Job ID, it searches the Job ID and shows the connection name of the Job ID.
You will receive a job completion notification once the job is completed or errored out or completed with a warning. You can click the Open Job Output option to see the details.
View Data Definition of the job
Click each job to fetch the job's Data Definition (DD).
Refresh the job explorer table
Click present in the top-right corner of the panel view to refresh the explorer table. The job explorer table will get the latest updates based on the search criteria (prefix or owner details).
Purge job
You can purge one or multiple jobs.
To purge one or multiple jobs
- In the Job Explorer panel, search for jobs.
The list of jobs is displayed. (For Single job) Right-click a row and click Purge.
- Click Yes to purge the job.
The status of the respective job gets changed to Purge command issued. Right-click the job and click Refresh. That job will be removed from the job list. If you click Cancel, the status of the respective job remains unchanged.