Thanks to all for the responses,
I receive a file on the IFS from a vendor. Not sure what format it is in,
but if put a .txt extension, and view the contents with Notepad, it appears
fixed length. There are no delimiters.
I plan to have a process that runs daily from a scheduler that will process
this file. I thought it would be easy to just move it to a DB2 and go from
there. But my attempts to use the cpyfrmimpf to copy it into a physical
file have not worked.
I did ftp it to my C drive, then again to DB2, and processed it without
issue. Can I use ftp to get it from the ifs? My first attempt at that did
not work.
Thanks, Tim
message: 6
date: Mon, 25 Feb 2008 12:39:28 -0600
from: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
subject: Re: Transfer a text file from the IFS
Hi Tim,
What's the easiest was to transfer a text file from the IFS to a
physical file on the 400.
"cat" is probably the "simplest". But, is it right for you? Hard to say.
CPYFRMSTMF and CPYFRMIMPF are relatively simple -- when they work -- and
probably more familiar to someone with an i5/OS background. But are
they right for you?
It's really hard to say what's right for you, since we don't know the
format of the text file (plain? flat file? delimited? markup? something
else?) and we don't know what you plan to use it for.
As an Amazon Associate we earn from qualifying purchases.