IBM Support

How to send a VB file from Mainframe to UNIX and then back to Mainframe?

Question & Answer


Question

How to send a VB file from Mainframe to UNIX and then back to Mainframe?

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

[{"Product":{"code":"SSFGBN","label":"IBM Sterling Connect:Direct for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG1222

Document Information

Modified date:
26 May 2020

UID

swg21562027