sending save files to PC

1150 pts.
AS/400 networking

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:

Answer Wiki

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

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>
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…?


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.
  • 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 come to your pc.
    325 pointsBadges:
  • 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:
  • 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:

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.

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


Share this item with your network: