1,150 pts.
 sending save files to PC
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
ASKED: March 4, 2010  2:21 PM
UPDATED: March 9, 2010  1:48 AM

Answer Wiki:
<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
Last Wiki Answer Submitted:  March 5, 2010  1:05 am  by  TomLiotta   108,260 pts.
All Answer Wiki Contributors:  TomLiotta   108,260 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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 pts.

 

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

 108,260 pts.