I am converting some UNIX shell scripts that use FTP to upload a load file produced by a PL/SQL script to the mainframe via SFTP instead of FTP, but when I replaced FTP with SFTP, it's making the records "wrap around". Making this even stranger, I have other accounts on this UNIX server that are just fine and the data file looks fine.
Here is the data on the UNIX server:
This what I get on the minaframe using SFTP:
I thought perhaps it's an end-of-line char problem causing the records to right-shift, but I have other accounts uploading their files fine and the test instance using the same code works fine as well.
Any ideas?
Here is the data on the UNIX server:
Code:
S12079AJ100010175797112-041058 CARLOS A LOPEZ DE ALBEAR 8197 00000030
S12079AJ100020175803012-041065 ELLIS GED BODDEN 99542 00000015
S12079AJ100030175805012-041066 ELLIS GED BODDEN 99544 00000015
S12079AJ100040175807112-041069 ELLIS GED BODDEN 99545 00000015
S12079AJ100050175807312-041071 ELLIS GED BODDEN 99441 00000015
S12079AJ100060175807712-041075 ELLIS GED BODDEN 99467 00000015
This what I get on the minaframe using SFTP:
Code:
S12079AJ100010175797112-041058 CARLOS A LOPEZ DE ALBEAR 8197 00000030..S12079
AJ100020175803012-041065 ELLIS GED BODDEN 99542 00000015.S12079AJ10003
0175805012-041066 ELLIS GED BODDEN 99544 00000015.S12079AJ100040175807
112-041069 ELLIS GED BODDEN 99545 00000015.S12079AJ100050175807312-041
071 ELLIS GED BODDEN 99441 00000015.S12079AJ100060175807712-041075 ELL
IS GED BODDEN 99467 00000015.S12079AJ100070175811012-041077 GREENSPAN
LAW FIRM 7150 00000015.S12079AJ100080175823212-041092 GREENSPAN LAW FIR
Code:
sftp -b ftp/ftp2mf ftp@scdc.dfs.state.fl.us
Code:
put /u003/tmp/sop.dat //FTP.RCP.PS29.TRAN
quit
Any ideas?