×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Forgive me if I missed this, but I didn't see the actual answer to the
original question in this thread.  If you want to FTP from a library to the
IFS you need to specify name format 1(NA 1) in the FTP.

After signing on to the FTP sesion try:

na 1
quote site trim 0
put /qsys.lib/yourlib.lib/yourfile.file /IFSdirectory/yourfile

        or

get /qsys.lib/yourlib.lib/yourfile.file /IFSdirectory/yourfile

Regards,

Scott Ingvaldson
AS/400 System Administrator
GuideOne Insurance Group

-------Original Message-------

From: midrange-l@midrange.com
Date: Wednesday, November 06, 2002 09:17:04 AM
To: midrange-l@midrange.com
Subject: AS/400 app FTPs file to IFS???

I need to copy an AS/400 file to the IFS with the requirement that the
resulting file must be fixed length. (The file on the AS/400 has only
alpha and signed numeric fields.) The AS/400 is at v4r5.

I struggled with CPYTOSTMF with no success. I found a reference to
using "quote site trim 0" in FTP and I was able to use FTP on my
Windoze box to get the desired results with the file being placed on my
PC.

But I need for an AS/400 app to do this work and I need the file to be
placed on the IFS. I know how to FTP between different AS/400s, but
I've never had the occasion to FTP a file from the AS/400 QSYS.LIB to
an IFS location.

Pointers to TFM are welcome.

TIA, Dan


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.