AS/400 command to retrieve and save files

1,215 pts.
Tags:
AS/400 administration
AS/400 commands
I want to retrieve and save the file from AS400 to system hard disk. 1. How can i achieve this through System command prompt? 2. How can I achieve using AS400 Commands?
ASKED: April 13, 2009  11:50 AM
UPDATED: April 16, 2009  7:35 PM

Answer Wiki

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

I’m not sure what you’re asking.
AS/400 files are always on the Hard Disk.
Do you want to make another copy of that file – different lib or different name?
then use CRTDUPOBJ or CPYF -create(*yes)
to bring it back CPYF *Replace
Do you want to make a compacted save file?
then CRTSAVF and SavObj or SavLib (specify the savf)
to “bring it back RstObj or RstLib (specify the savf)

Phil
/////////////////////////////////////////////////////////////

From your PC you could use FTP to get it from the 400
or
From the AS/400 you could use FTP to PUT it on your PC
or
You could get it in Navigator
or
You could transfer it using Receive from the Host on Client Access

Phil

////////////////////////////
Do you want to be able to use the files on your PC or just have a back-up copy?
The SAVF suggestion provides the back-up but must be restored to an AS/400 to be used.

Phil

Discuss This Question: 2  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
  • rajeshece
    I want to save the files in my local mchine harddisk ( windows environment)
    1,215 pointsBadges:
    report
  • LBurkett99
    Create a save file using the CRTSAVF command. Save your files using the SAVOBJ command, or libraries using the SAVLIB command, to device *SAVF and supply the name of your save file. ftp the save file to your windows environment. The name of the AS/400 file to put/get will be of the form "libraryname/filename.SAVF." Good luck, Leo Burkett
    830 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