Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Save/Restore Library from and to Stream file

619 views
Skip to first unread message

Falco

unread,
Jan 8, 2009, 4:04:43 PM1/8/09
to
Okay I set up a backup of a library to a Save File and then move the
Save File to a Folder Share in the IFS. When I move the file back to
QGPL and try to display the save file it tells me it contains invalid
data. I'm I doing something wrong or it it possible to do this?

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

amc

unread,
Jan 8, 2009, 9:08:33 PM1/8/09
to

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')


Dick J

unread,
Jan 9, 2009, 6:46:30 AM1/9/09
to
Try FTP using an FTP script and send it BINARY
"Falco" <cwhi...@hotmail.com> wrote in message
news:d29b6483-254d-44e7...@x16g2000prn.googlegroups.com...

iseriesflorida

unread,
Jan 9, 2009, 11:19:42 AM1/9/09
to
On Jan 9, 6:46 am, "Dick J" <dick...@gmail.com> wrote:
> Try FTP using an FTP script and send it BINARY"Falco" <cwhit...@hotmail.com> wrote in message
> > Falco- Hide quoted text -
>
> - Show quoted text -

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.


Falco

unread,
Jan 9, 2009, 6:32:55 PM1/9/09
to
Yes Dick I wanted to use FTP, but the Windows Goober controlling the
NAS server wouldn't use FTP.

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!

JTF

unread,
Jan 10, 2009, 12:00:46 AM1/10/09
to

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

iseriesflorida

unread,
Jan 10, 2009, 7:29:55 AM1/10/09
to

Falco, in your move command your missing the file name.

Graybeard

unread,
Jan 12, 2009, 10:23:12 AM1/12/09
to
I am not sure why you want to copy to IFS and back again, but if you
are at V5R4 the easiest way would probably be to use a virtual tape
drive. Then you can SAV or RST to or from the IFS like it was a tape
drive.

Henrik Eriksson

unread,
Jan 15, 2009, 6:40:53 AM1/15/09
to
Feel free to download this java program: (RSTLIBPC)
http://www.interform400.com/RSTLIBPC.jar

Henrik

----- Original meddelelse -----
Fra: Falco
Dato: 08-01-2009 22:04

0 new messages