This Process copies a sequential file from a z/OS node
to a UNIX node (STEP1) and back to the z/OS node (STEP2). It then
submits itself to run again (STEP3).
CPY01 PROCESS SNODE=den34 -
SNODEID=(test1,propty2)
STEP1 COPY -
FROM (PNODE DSN=TSTFL1.IN.FILE01 DISP=SHR) -
TO (SNODE DSN=’out01’ DISP=SHR)
STEP2 COPY -
TO (PNODE DSN=TSTFL1.IN.FILE01 DISP=SHR) -
FROM (SNODE DSN=’out01’ DISP=SHR)
IF (STEP1 EQ 0) THEN
RUN TASK (PGM=DMNOTFY2, -
PARM=(FAIL,TSTFL1.IN.FILE01,%USER)) -
PNODE
EXIT
EIF
STEP3 SUBMIT DSN=TSTFL1.PROCESS.MVS.TO.UNIX(CPY01) -
SUBNODE=PNODE CASE=YES
|
This example shows a file copy from a z/OS node to a UNIX
node using SYSOPTS. The UNIX DSN and SYSOPTS strings are in lower
case and are enclosed in double quotation marks.
BENCHM1 PROCESS SNODE=kyla -
SNODEID=(barry1,322red)
STEP1 COPY -
FROM (PNODE DSN=TEST.TESTFILE.BENCH.M1 DISP=SHR -
CKPT=1M -
COMPRESS EXTENDED -
TO (SNODE DSN=’benchm1’ DISP=MOD -
SYSOPTS=”:datatype=text:strip.blanks=no:”)
|