Request
Enhance the JCL Editor Outline in IBM Developer for z/OS so that a valid PEND statement terminates the current in-stream procedure scope in the Outline structure. Statements following PEND should be displayed at the enclosing job level unless they explicitly begin another procedure.
Problem
In IBM Developer for z/OS 17.0.5, when a valid PEND statement terminates an in-stream PROC, the JCL Editor Outline continues to use the preceding PROC as the parent node. Subsequent job-level EXEC statements are therefore displayed as children of the terminated procedure.
IBM Support reproduced the reported behavior, including in an IDz 16.0.8 environment. The development team subsequently confirmed that the observation is valid but that the product is currently working as designed. IBM Support recommended submitting this Idea as an enhancement request. The related support case is TS022898171.
Minimal example
//PENDTRM JOB CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
//MYPROC PROC
//PSTEP1 EXEC PGM=IEFBR14
// PEND
//CALLPROC EXEC MYPROC
//AFTER1 EXEC PGM=IEFBR14
//
Expected Outline structure
PENDTRM JOB
├─ MYPROC PROC
│ └─ PSTEP1 EXEC PGM=IEFBR14
├─ CALLPROC EXEC MYPROC
└─ AFTER1 EXEC PGM=IEFBR14
Actual Outline structure
PENDTRM JOB
└─ MYPROC PROC
├─ PSTEP1 EXEC PGM=IEFBR14
├─ CALLPROC EXEC MYPROC
└─ AFTER1 EXEC PGM=IEFBR14
The Outline incorrectly shows CALLPROC and AFTER1 as belonging to MYPROC even though the procedure was terminated by PEND.
Host execution result
The same JCL is accepted and interpreted correctly by JES. The test job completed with CC 0000. JES expanded and executed MYPROC correctly and executed AFTER1 as a separate job-level step.
This demonstrates that the request concerns the IDz client-side JCL structure and Outline presentation. It does not concern JES interpretation or job execution.
Why this enhancement is useful
Developers use the Outline view to:
- Understand complex JCL structures.
- Determine whether a step belongs to an in-stream procedure or to the enclosing job.
- Navigate between procedures and job-level statements.
- Review and maintain production JCL.
- Validate the effect of structural changes during code review.
When the Outline hierarchy differs from the structure recognized by JES, developers can be misled about procedure boundaries and statement ownership. This reduces confidence in the Outline view and increases the time and risk involved in reviewing complex JCL.
Who would benefit
This enhancement would benefit z/OS developers, JCL maintainers, reviewers, application support teams, and organizations adopting IDz as a replacement or modernization path for traditional host development tools.
Requested behavior and acceptance criteria
1. When the JCL structure model encounters a syntactically valid PEND statement, it should close the active in-stream PROC scope.
2. Statements following PEND, including EXEC, SET, JCLLIB, and other valid job-level statements, should be represented at the enclosing job level unless they begin another valid procedure scope.
3. The behavior should be consistent for all valid PEND forms supported by z/OS JCL, including PEND with a blank name field and a named PEND statement.
4. EXEC MYPROC and EXEC PROC=MYPROC statements following PEND should both be displayed as job-level statements.
5. Multiple in-stream procedures in the same job should each have independent and correctly terminated scopes.
6. Adding an explicit null statement at the end of a job should not be required to complete or correct the Outline structure.
7. The corrected structure should be available without producing false JCL warnings or requiring changes to valid, executable JCL.
Current workarounds and limitations
One workaround is to move the in-stream procedure into a cataloged or private procedure library and configure that library in the IDz Remote Property Group. This produces the expected Outline hierarchy but requires restructuring existing JCL and maintaining additional property-group configuration.
A second cosmetic workaround is to add another unused in-stream procedure after PEND. This creates a new Outline node, but subsequent job-level statements are still assigned to the wrong parent. The resulting hierarchy therefore remains semantically incorrect.
Neither workaround provides an equivalent, sustainable replacement for recognizing PEND as the end of the current in-stream PROC scope.
I got the same issue.