I want to copy the IFS fIle from one directory to another file and i want to ftp that file

140 pts.
Tags:
AS/400 administration
AS/400 FTP
IFS
Integrated File System
I want to copy the IFS fIle from one directory to another file and i want to ftp that file..I need a solution how to perform this??
ASKED: January 16, 2009  6:40 AM
UPDATED: January 17, 2009  12:06 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

To copy a file from one IFS location to another, you can use the CPY command –
CPY OBJ(‘/MyDirectory/MyFile.csv’) TOOBJ(‘/MyOtherDirectory/MyOtherFile.x’).

To send an IFS file via FTP, use the FTP or STRTCPFTP command to start a file transfer session. After logging in, you can enter <i>namefmt 1</i> to address the hierarchical file system of the IFS. From there, the <i>cd</i> (change directory) and <i>lcd</i> (change local directory, i.e., the source system, if you’re transferring between different systems and need to distinguish which is which) will allow you to navigate the directory structure. And then the <i>put</i> command is what copies the specified file from the source location to the target location.

Discuss This Question:  

 
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

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