|
Phil
Using the second one (rst dev) was right for restoring.
I think cpytostmf simply copies the savefile to IFS.
cpy means simply copy,rst means restore - Eh!(enlightened!!).But after copying the savefile using cpytostmf to IFS I checked the object type in wrklnk I think it was *stmf (instead of AS/400 (save)file).
> RST DEV('/qsys.lib/qtemp.lib/phil.file') OBJ(('test.html'))
and the data was correct.
BTW I think it has to be OBJ(('/test.html')).Am I wrong?
Regards
Rizwan
-----Original Message-----
From: Phil [mailto:sublime78ska@yahoo.com]
Sent: Saturday, July 21, 2001 7:31 PM
To: MIDRANGE-L@midrange.com
Subject: RE: restore *STMF type objects from a SAVF to IFS
Rizwan,
I didn't know you could use the cpytostmf cmd either. I tried it, and the
data is corrupt. Do you need to specify something special on the command?
I use the RST command.
To set up my test, I did this:
SAV DEV('/qsys.lib/qtemp.lib/phil.file') OBJ(('/test.html'))
Then I did this:
> CPYTOSTMF FROMMBR('/qsys.lib/qtemp.lib/phil.file') TOSTMF 'test.html')
and the data was screwy. Do I need to do something different here?
Then I did this (which is how I normally do it):
> RST DEV('/qsys.lib/qtemp.lib/phil.file') OBJ(('test.html'))
and the data was correct.
Phil
-----Original Message-----
From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On
Behalf Of Rizwan Ahmed
Sent: Saturday, July 21, 2001 4:34 AM
To: MIDRANGE-L@midrange.com
Subject: RE: restore *STMF type objects from a SAVF to IFS
I figured it out myself.I had to use cpytostmf.I used this command numerous
times but haven't noticed that savf (LL) could also be used to copy to the
IFS.
Rizwan
-----Original Message-----
From: Rizwan Ahmed [mailto:rizwan@nscsa.com.sa]
Sent: Saturday, July 21, 2001 9:27 AM
To: MIDRANGE-L@midrange.com
Subject: restore *STMF type objects from a SAVF to IFS
Hi
How can I restore *STMF type objects from a SaveFile?.It has to be restored
to the IFS from the Save File.I don't have any clue to how to use it using
RSTOBJ
Thanks for any help
Rizwan
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.