How can you tell if it's all in the same line? Unless you are viewing it in the mainframe you just don't know, EOL chars are not the same in an ASCII UNIX and on an EBCDIC mainframe. You may need a bit more than conv=ebcdic or conv=ibm it will depend of what is the data you are moving. Is it a fixed len data file?
If yes you might need to do same padding, ibs= and conv=block (or conv=sync) might help. If in the end the resulting file (when seen on the mainframe) seems to be mixed up you might need to add a conv=swap, sftp might (or might not) do that for you. In this case I would do the conv outside the sftp script. Ant?nio Vasconcelos Servi?o Unix SSI UEG2?
Gest?o de Sistemas Distr?buidos Grupo Caixa Geral de Dep?sitos 55 67 81 email@removed. Gangadhar, If this is really your code (as posted), then you are doing about six different things wrong.
It offers files comparison,full Unicode, open/save files using specified encoding, customizable keyboard shortcuts, support keyboard mapping scheme,find disk file, function list,export/import user favorite settings, syntax highlighting, Find/Replace in files, ASCII to EBCDIC, EBCDIC. Use this tool to convert character strings to ASCII and EBCDIC bytes (in hex), and vice versa. We cannot show every code page, but have included the more common ones we've dealt with. Find a full list of code pages at IBM or Tachyon Software. Free Tools and Code: Mainframe Links. So how do EBCDIC, ASCII and Unicode work together? ASCII Code Pages. If you are a mainframe veteran like me, you work in EBCDIC. You use a TN3270 emulator to work with TSO/E and ISPF, you use datasets, and every program is EBCDIC. Most high level languages have some sort of Unicode support.
Sftp -v tfinftp@$vdesthost. Jack, My Solaris and Linux manuals imply that dd will split fixed-width records into Unix lines.
This is on dd (coreutils) 6.9 on PuppyLinux, but the same options appear in Solaris. SandBox-) echo ABCDEFGHIJKLMNOP wc 1 1 17 SandBox-) echo ABCDEFGHIJKLMNOP dd 2/dev/null cbs=6 conv=unblock wc 3 3 19 SandBox-) echo ABCDEFGHIJKLMNOP dd 2/dev/null cbs=6 conv=unblock ABCDEF GHIJKL MNOP That seems to work fine. And you can conv=unblock,ebcdic in one run if needed. I was looking at using: dd bs=80 count=1 skip=x:in a loop incrementing x but that runs a process for every record.