Question & Answer
Question
Answer
Start with a simple file on the mainframe that is Variable block data.
************************************************************
*Mainframe to UNIX and then back to mainframe.
*
*This process will show how to send VB file from mainframe to UNIX.
* Note the file is VB but the RECFM=U is coded on process.
*
* This will create the binary VB type file on UNIX
* then use DATATYPE VB to send back to mainframe.
************************************************************
TOUNIX PROCESS SNODE=UNIX.CD.V4 -
HOLD=YES
STEP5 COPY -
FROM (PNODE DSN=PK1.VARI.TEST -
DCB=(RECFM=U) -
DISP=(SHR)) -
TO (SNODE DSN='/home/pk1/var' -
disp=new -
sysopts=":datatype=VB:")
*******
* process to execute on UNIX side to xfer file back to mainframe.
******
variable process
snode=zossnode
snodeid=(userid,password)
step1 copy
from (file=/home/support/vbm.recfmu.binary
SYSOPTS=":datatype=vb:")
to (file=HLQ.DEL.VBM.RECFMU.BINARY
DISP=(NEW,CATLG,DELETE)
DCB=(RECFM=VBM,LRECL=32756,BLKSIZE=32760) <These values have to be supplied by the customer>
SPACE=(CYL,(25,5,),RLSE)
UNIT=(SYSDA))
pend;
Connect:Direct z/OS All Releases
Related Information
Historical Number
HTG1222
Was this topic helpful?
Document Information
Modified date:
26 May 2020
UID
swg21562027