290 pts.
 FTP to Get File from UNIX to AS/400
I should retrieve a file from UNIX to AS/400 (V5R3) to a data base file using FTP. But the File name on UNIX is RCVWFB01(SNDCHS01)20120203_092924.cnt. Now If I try to use GET command on AS/400, as GET RCVWFB01(SNDCHS01)20120203_092924.cnt LIBRARY/FILE.MEMBER, It throws me an error saying Invalid arguments.

Software/Hardware used:
iSeries V5R3M0
ASKED: February 11, 2012  12:32 AM
UPDATED: March 19, 2012  2:07 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   14,060 pts. , TechTalker   2,280 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You are mixing two incompatible naming formats in a single statement. Try it this way, and let us know the result:

GET RCVWFB01(SNDCHS01)20120203_092924.cnt //qsys.lib//LIBRARY.lib//FILE.file//MEMBER.mbr

Use the NAMEFMT 1 naming format for both sides of the transfer.

Tom

 110,215 pts.

 

Sorry… this editor seems unpredictable at times. Where the double-slashes appear in the path, only single slashes should be used.

Tom

 110,215 pts.

 

Tom,

The command still doesn’t work. It goes to help screen of GET command. I guess we couldn’t use file name with ‘( )’ in it in FTP commands on AS/400.

 290 pts.

 

If I replace characters in file name ‘( )’ with ‘_’ on UNIX, I am able to get the file to AS/400 using FTP GET. But it’s not allowing me with ‘( )’ in the name even I use NAMEFMT 1 or 0.
Please let me know if any way to GET file from other server, incase the file name has characters ‘( )’ in it.

Thanks.

 290 pts.

 

If that’s the only problem, then use quotes around the name:

GET "RCVWFB01(SNDCHS01)20120203_092924.cnt" /qsys.lib/LIBRARY.lib/FILE.file/MEMBER.mbr

Tom

 110,215 pts.