FTP to Get File from UNIX to AS/400

305 pts.
Tags:
AS/400
iSeries networking
iSeries V5r3M0
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • TomLiotta
    Sorry... this editor seems unpredictable at times. Where the double-slashes appear in the path, only single slashes should be used. Tom
    125,585 pointsBadges:
    report
  • sim400
    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.
    305 pointsBadges:
    report
  • sim400
    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.
    305 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following