zos://
The zos:// prefix is used to refer to pre-existing, persistent datasets or PDS members on your target z/OS system. Grace does not manage the creation or deletion of these datasets (unless a job explicitly does so).
This prefix is essential for:
- Reading from existing master files, parameter libraries, or shared datasets.
- Writing to established output datasets or archival locations.
- Referencing existing JCL members to be used (with the
job.jclfield).
Resolution
-
Mainframe DSN: The string following
zos://is treated as the literal, fully-qualified z/OS dataset name (DSN).- Grace performs basic validation on the DSN format.
- No further resolution ir name generation is done by Grace for this path; it's used as-is when interacting with z/OS.
-
Local (for
shelljobs):-
As an
inputto ashelljob:Grace downloads the specified z/OS dataset or PDS member to a temporary local file in Grace's staging area. The environment variable (e.g.
$GRACE_INPUT_MYZOSDATA) will point to this downloaded local copy. -
As an
outputfrom ashelljob:Grace expects the shell script to write to a local staged file (path provided via
$GRACE_OUTPUT_MYZOSDATA). After the script completes successfully, Grace uploads this local file to the specified z/OS dataset or PDS member. The target z/OS dataset should exist. For PDS members, the PDS must exist.
-
Typical usage examples
Input to a z/OS execute job:
Output from a z/OS execute job to a persistent dataset:
Input to a shell job from z/OS:
Output from a shell job (uploaded to z/OS):
Using an existing JCL member for a job:
Key considerations
-
Existence: When used as an input, the specified z/OS dataset/member must exist on the mainframe. Grace does not create it. When used as an output, the dataset (especially if it's a PDS for a new member) should generally exist, or the JCL/program must be capable of creating it with the correct attributes.
-
Permissions: The Zowe CLI user profile associated with Grace must have the necessary READ/WRITE/CREATE/DELETE authorities for the specified datasets on z/OS.
-
grace deckbehavior:grace deckdoes not attempt to upload any local files forzos://paths defined injob.inputsorjob.outputs. It assumes these resources are already on the mainframe.- If
jcl: zos://is used,grace deckskips JCL generation and upload for that job's JCL body.
-
For
shelljob outputs tozos://: Grace implicitly handles upload to the specified DSN. Ensure the target DSN is suitable for receiving an uploaded sequential file or PDS member.