Product: IBM z/OSMF (Workflows)
Request for Enhancement:
Please enhance z/OSMF Workflows to allow a unique (dynamic) JOBNAME per job step within a single workflow execution, without requiring manual edits to each job’s XML/JCL. Today, all jobs launched by a workflow inherit the same jobname, which makes failure analysis and operational troubleshooting difficult—especially for large workflows.
Current behavior / limitation:
- In z/OSMF Workflows, when using the workflow-level (universal) JCL card (not the workflow editor per-job JCL), all workflow job steps run under the same JOBNAME.
In “Workflow -> Actions -> Customize Job Statement”, attempts to use a variable for JOBNAME fail validation.
Example attempted job statement:
//${jobName} JOB (account),' ',CLASS=X,
// MSGCLASS=0,NOTIFY=&SYSUID,REGION=0M
Error shown by z/OSMF:
“The JOB statement settings are not valid. Enter valid JOB statement settings.”
Impact / why this matters:
- When a workflow contains many steps (e.g., ~50 job steps), using the same JOBNAME across all steps makes it hard to: quickly identify which step failed, correlate job output/spool/logs to a specific workflow step, perform efficient incident triage and root-cause analysis.
quickly identify which step failed,
correlate job output/spool/logs to a specific workflow step,
perform efficient incident triage and root-cause analysis.
requires manual changes to many XML definitions (e.g., 50 updates for a 50-step workflow),
introduces ongoing maintenance overhead when workflows change,
increases risk of human error.
Why existing alternatives don’t work for us:
- We do not want to use a separate JCL card per job step.With ~50 steps, this would require creating ~50 unique variables and assignments, which is cumbersome and error-prone.
With ~50 steps, this would require creating ~50 unique variables and assignments, which is cumbersome and error-prone.
Requested enhancement (desired behavior):
Enable z/OSMF Workflows to support step-specific jobnames by design, for example via one of these approaches:
- Allow variable substitution in the JOBNAME field within “Customize Job Statement” (e.g., ${jobName}), with validation updated accordingly.
Provide a built-in workflow token (e.g., ${stepName}, ${jobStepId}, ${workflowInstanceId}) that can be used to construct unique jobnames per step.
Provide an option such as “Auto-generate unique JOBNAME per step” (e.g., based on workflow name + step name/sequence), while still using the universal JCL card.
Acceptance criteria / expected outcome:
- A single workflow run should be able to submit jobs with different JOBNAMEs per step automatically.
No manual editing of each job’s XML should be required.
Configuration should be maintainable even as the workflow is updated (minimal manual intervention).
Reference: IBM Support case: TS022902638