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.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
You are mixing two incompatible naming formats in a single statement. Try it this way, and let us know the result:
Use the NAMEFMT 1 naming format for both sides of the transfer.
Tom
Sorry… this editor seems unpredictable at times. Where the double-slashes appear in the path, only single slashes should be used.
Tom
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.
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.
If that’s the only problem, then use quotes around the name:
Tom