Sending files through connect direct from UNIX to MAINFRAME

I am sending a file from UNIX to MAINFRAME server via connect direct. I am able to upload the file successfully.At the destination host, when the file is received it is not readable and not in the same format as I sent from the UNIX server. Below is the transmission job

Direct> Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI. submit maxdelay=unlimited TINIRS process snode=b1ap005 TRANSMIT copy from (file=myFile.txt pnode sysopts=":datatype=text" ) ckpt=1k to (file=myFile.txt(+1) snode DCB=(DSORG=PS,RECFM=VB,LRECL=1500) disp=(new) ) pend ; 

Please let me know the DCB values needs to be updated. The file I am sending has 3 records of variable length and the maximum length of record is 1500.

asked Oct 28, 2011 at 14:49 21.5k 33 33 gold badges 89 89 silver badges 99 99 bronze badges

I'm not sure this is programming question. You may want Serverfault. You can "flag" your own question for moderator attention to ask it to be moved.