Use the Host ROUTEVSM command to initiate from a host BIMUTIL job stream a transfer of a VSAM file from the host to a workstation.
Required Operands
SRC is the DLBL (VSE) or DDNAME (MVS) of the VSAM file to be copied.
USER is the destination user. The SRC file will be copied to the workstation where the USER user is logged on.
DEST is the full path of the file to be created at the destination workstation.
Optional Operands
TYPE is the VSAM file type. Specify either ESDS, KSDS, or RRDS.
Default: KSDS.
CRRET specifies whether a carriage return byte sequence is to be written after each record. Specify "1" to write the carriage return. Specify "0" otherwise.
Default: Off.
ASCII specifies whether the VSAM file contains EBCDIC text and whether conversion to ASCII is to take place. Specify "1" to perform an EBCDIC to ASCII conversion. Specify "0" otherwise.
Default: Off.
The following VSE JCL transfers the VSAM ESDS file "RXI.APFILE" to the workstation where user USR1 is logged on as file C:\RXI\APFILE. The file is presumed to contain EBCDIC text and will be converted to ASCII text. A carriage return byte sequence will be written after each record.
// DLBL APFILE,'RXI.APFILE'
// EXEC BIMUTIL
LOGON $SYS,$SYS
ROUTEVSM APFILE,USR1,C:\RXI\APFILE, -
TYPE=ESDS,CRRET=YES,ASCII=YES
/*