Here are my backup command:
SAVLIB LIB(QS36F) DEV(*SAVF) SAVF(QGPL/S36F) +
SAVACT(*SYSDFN) SAVACTWAIT(1) DTACPR
(*YES)
MOV OBJ('/QSYS.LIB/QGPL.LIB/S36F.FILE') +
TODIR('/BACKUP')
To restore I do the MOV cammand back to QGPL leaving to defaults for
the CCSID and Data Format.
Thanks in advance!
Falco
try this
CPYTOSTMF FROMMBR('/QSYS.LIB/QGPL.LIB/S36F.FILE') TOSTMF('/BACKUP/
S36F.SAV') STMFOPT(*REPLACE) ENDLINFMT
(*FIXED)
CPYFRMSTMF FROMSTMF('/BACKUP/S36F.SAV') TOMBR('/QSYS.LIB/QGPL.LIB/
S36F.FILE')
I ran this on my machine, I got it to work, in your example you show
the move from the save file to the ifs, you do not show the move of
the ifs file back to the save file. There are other parms that show
up on the move. Here is my example of going from IFS back to save
file with no issues.
MOV OBJ('/jackk/diskutils.file') TOOBJ('/qsys.lib/qgpl.lib/
diskutils.file')
This assumed that the original move used CCSID of OBJ and Data format
of BINARY.
The MOV command back I used is:
MOV OBJ('/BACKUP/s36f.file') TODIR('/QSYS.LIB/QGPL.LIB')
Oh! Maybe I have to use the TOOBJ instead of the TODIR
Well I changed it to CPYFRMSTMF for today, but I'll try both and post
results.
Thanks for the help!
Have you tried moving the file to their server via QNTC? This is the
"windows 95 version of network neighborhood", according to
IBM ....caveat, you need to have the same user and pass on both the
iSeries and the windows server with the share.
You can save to a savf and cpytostmf over to the windows share
directly...
Falco, in your move command your missing the file name.
Henrik
----- Original meddelelse -----
Fra: Falco
Dato: 08-01-2009 22:04