Hi All
I am trying to copy a file from Windows server to Unix Server using JCL code.
//CPYFR01 EXEC CPYUTIL
//UNVOUT DD DSN=&&UCMDFR01,DISP=(,PASS,DELETE),
// DCB=(BLKSIZE=70000,LRECL=2048,RECFM=FB),
// UNIT=SYSDA,
// SPACE=(2048,(500,500),RLSE),AVGREC=K
//UCMDOPT DD DISP=SHR,DSN=IC.D2C.UCMDOPT.FILE(WINUSERID)
//SYSIN DD *
-host WindowsServerName
-userid WINUSERID
-x UCMDOPT
-cmd "UCOPY \\SOURCESERVER\PATH1\ABC.txt"
//CPYTO01 EXEC CPYUTIL
//UNVIN DD DSN=&&UCMDFR01,DISP=OLD
//UCMDOPT DD DISP=SHR,DSN=IC.D2C.UCMDOPT.FILE(UNXUserID)
//SYSIN DD *
-cmd "ucopy > /app/path1/ABC.txt"
-host UnixServerName
-userid UNXUserID
-x UCMDOPT
-stdout -mode binary
/*
The Record delimiter of the file is automatically getting converted from 'CRLF' (dos format) to 'LF' (unix format)
Is there any way to transfer the file from Windows to Unix server without changing the Record Delimiter?
Thanks in Advance.
Regards
Rahul