ibm midrange - Why does a PC-to-AS400, ASCII FTP transfer result in very large file growth on the AS400 side? -
ibm midrange - Why does a PC-to-AS400, ASCII FTP transfer result in very large file growth on the AS400 side? -
given: novice on as400 platform, @ best
problem: need transfer variable width, pipe-delimited ascii files windows 2003 server ftp server running on v6r1. files arrive , translated ebcdic, huge. 3.5mb file becomes 200+ mb member. 9gb file fails because bump against manner of quota.
interesting fact: when done in binary mode (no translation), file appears on server side filename.file 1 fellow member named filename.mbr. transfer size correct, file not readable native tools because of ascii encoding.
interesting fact: has been tried on 3 v6r1 machines same results. i'm normal behavior not understand well.
my gut feeling here server extending file adds new rows -- don't have improve guess that @ point. has seen behavior before, , know takes avoid it?
thanks in advance taking time contribute. appreciate it.
the ibm ftp server can either deal objects in "classic" qsys.lib file scheme (where have objects such files residing in single layer of libraries) or stream files on integrated file scheme (a hierarchical file scheme similar what's used in windows , unix).
it sounds you're sending file physical file (pf) in qsys.lib file system. pf has fixed-length records, you're seeing slack space @ end of records. can see how many records in pf , record length using dspfd
cl command.
if want send file pf, ftp server defaults name format 0, qsys.lib file system. in mode you'd send pf such this:
send myfile.txt dmclib/myfile.mymbr
if want send file stream file, have first send command ftp server:
quote site namefmt 1
this switches ftp server ifs naming mode. result, when send file you'll need specify directory want send to. example:
send myfile.txt /home/dmc/myfile.txt
if you're sending variable-length records, ifs stream file have no slack you'd see in physical file.
if pipe-delimited file contains single layout, can utilize cpyfrmimpf
cl command map pf actual record format, more "native" way it. if it's more complex file format, however, might have write ile rpg programme convert stream file whatever form needs in. here great tutorials on accessing stream files ile rpg.
also note can see interesting help info ibm ftp server using quote help
command while connected command-line ftp client.
ibm-midrange
Comments
Post a Comment