Edit & Save JCL from SDSF


Editing JCL from SDSF allows users to make changes to the JCL of a job directly within SDSF. This feature is useful for correcting errors, updating parameters, or modifying job configurations without resubmitting the entire job from scratch.

Why Edit JCL in SDSF?

  • To quickly fix issues in the job and resubmit it without navigating back to the source.
  • To adjust runtime parameters or dataset names before execution.
  • To make small changes without reloading or recreating the JCL.

How to Edit JCL from SDSF?


Scenario - Change the JOB class from 'A' to 'X' and save it as a NEWJCL in MATEDF.JOBLIB pds.

  1. Go to the Job Status Panel: Type 'ST' on the SDSF command line and press 'Enter'. This opens the Job Status panel where you can see the list of jobs.

    Edit & Save JCL from SDSF
  2. Edit the JCL: Type 'SJ' (Short for 'Submit JCL') next to the job you want to edit and press 'Enter'.

    Edit & Save JCL from SDSF
    The job’s JCL will open in an editable ISPF editor.

    Edit & Save JCL from SDSF
  3. Make Changes to the JCL: Modify the JCL as needed.

    Edit & Save JCL from SDSF
  4. Save the Changes: Use the "CC" block to select all JCL Code and "CREATE" at the command promt to save your changes into PDS.

    Edit & Save JCL from SDSF
  5. Target PDS: In the next screen, provide the target PDS name along with member name (Where to save) and hit "Enter".

    Edit & Save JCL from SDSF
    The modified JCL will be saved in the target PDS.

    Edit & Save JCL from SDSF
  6. Exit: Press F3 to return to the previous panel or exit SDSF.
  7. Verify Changes: Go to 3.4, and check for the saved member in the PDS.

    Edit & Save JCL from SDSF