× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Help --restore *STMF type objects from a SAVF to IFS
  • From: Evan Harris <spanner@xxxxxxxxxx>
  • Date: Sun, 22 Jul 2001 21:37:18 +1200

Rizwan,

I'll take another stab at helping you, but I think you need to go back and do some basic research on save and restore operations and the IFS.

First, the way I understand it, save files are basically a "native" AS/400 object and therefore by default live in the QSYS.LIB file system. There is no need to copy the save file to a stream file like you seem to be doing.

The steps you need to follow are:

Use the SAV command to save the directory that contains the stuff you want to save. Specify the device parameter to point to a save file. It will be something like DEV('/qsys.lib/rizwan.lib/xml4proc.file') But I suggest that you create xml4proc (or whatever) as a sav file before doing the save, if you haven't already.

To restore the objects use the RST command and again specify the DEV parameter using the save file name as in the example above.

You don't actually need to do anything else to save and restore the objects, so I don't know why you are copying the data into a stream file.

If your problem is to do with FTP'ing it from one system to another, then for simplicity sake create the save file on the system you want to FTP it to and do the FTP. Again you don't need to use the IFS you can FTP between the QSYS.LIB file system quite well.

If you spell oput what you are trying to do, rather than what is giving you the problem it might be easier to give you more relevent advice

Hope this helps

Evan Harris


Could someone help me please!.

 

I am trying to restore a save file which has *STMF objects to IFS.I use CPYTOSTMF (Is there any other way?).

 

===> CPYTOSTMF FROMMBR('/qsys.lib/rizwanlib.lib/xml4prdoc.file') TOSTMF('/xml4p

r310/doc/doc1') STMFOPT(*none) CVTDTA(*NONE)

the savefile xml4prdoc contains many htmls and dir s but after copying it to the IFS it results in a single unusable file doc1.

 

I expected doc1 to be the directory that could contain the htmls and dir s after copying.

 

What I am missing?.Or how to do this?.All other parameters in cpytostmf are ignored if I use a savefile.

 

Thanks for any help

 

Rizwan   

 

-----Original Message-----
From: Rizwan Ahmed [mailto:rizwan@nscsa.com.sa]
Sent: Saturday, July 21, 2001 11: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
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.