sending save files to PC

1150 pts.
Tags:
AS/400 networking
HI,

i have created a savefile on my AS/400 which i want to send to my local PC. Please tell me how to do this?Tell me both FTP and form the AS/400 screen as well. I am confused..plz help..regards



Software/Hardware used:
iseries,V5R4

Answer Wiki

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

<pre>
CPYTOSTMF FROMMBR(‘/qsys.lib/mylib.lib/mysavf.file’)
TOSTMF(mysavf.savf) STMFOPT(*REPLACE)</pre>
That copies a savefile named MYSAVF in library MYLIB to whatever the current directory is. The resulting streamfile is named mysavf.savf, e.g., /home/MYCURDIR/mysavf.savf.

Then just drag/drop out of iNav onto your PC. Or drag/drop from a shared directory.

In the opposite direction, drag/drop back onto your AS/400 and run:<pre>
CPYFRMSTMF FROMSTMF(mysavf.savf)
TOMBR(‘/qsys.lib/mylib.lib/mysavf.file’)
MBROPT(*REPLACE)</pre>
If the savefile doesn’t exist in library MYLIB, that should create it; otherwise, that should replace it.

Note that it is <b>important</b> that the file extension is [ .savf ] while it’s in a streamfile. Your AS/400 should already know what to do for those.

However, perhaps that’s not the method you’re looking for…?

Tom

Discuss This Question: 3  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
  • Herbina
    Hi, do DSPSAVF(F4) , enter name and lib of your savf andgive *PRINT against option OUTPUT. Then go to navigator and open printer output all spool files will come there, right click on it and and send to notepad.it come to your pc.
    325 pointsBadges:
    report
  • DanD
    If you want or need to use FTP vs drag-drop enter bin and change the FTP to binary mode before doing your get/put.
    2,865 pointsBadges:
    report
  • TomLiotta
    With FTP, you always want BINARY for the transfer type as DanD mentioned. You do not want your savefiles to be processed through a TEXT conversion from EBCDIC to ASCII nor the reverse. As with copying savefiles as streamfiles, it's best to reference them with a .SAVF extension. If you use NAMEFMT 1, your AS/400 will recognize the extension and can provide some help. In particular, if you say PUT MYSAVF.SAVF in a Windows FTP, then the FTP server on your AS/400 can automatically create the savefile for you named MYSAVF; it's not necessary for you to create a savefile ahead of time if the extension is .SAVF and you're running under NAMEFMT 1. 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