× 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: Rizwan Ahmed <rizwan@xxxxxxxxxxxx>
  • Date: Sun, 22 Jul 2001 15:07:15 +0300

Title: RE: Help --restore *STMF type objects from a SAVF to IFS

JT

Oh!.Thanks.

Very much encouraging.

I am doing it SOLO but after seeing this message I showed it to my manager and collegues to impress them.ha ha

Thanks again

Rizwan


 -----Original Message-----
From:   jt [mailto:jt@ee.net]
Sent:   Sunday, July 22, 2001 2:39 PM
To:     MIDRANGE-L@midrange.com
Subject:        RE: Help --restore *STMF type objects from  a SAVF to IFS

Rizwan,

YOU DA MAN...!  YOU DA MAN...!

I like the way you try to *answer your own questions* and then report your findings back.
I'd been interested in doing a project like you're doing.  I think XML is going to be important in the future of the iSeries.  To tell the truth, I don't know that I'd have the patience to slug through it, the way you're doing.

Are you working with anybody on this project?  Or going it solo...?
jJt


-----Original Message-----
From:   owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On
        Behalf Of Rizwan Ahmed
Sent:   Sunday, July 22, 2001 5:55 AM
To:     MIDRANGE-L@midrange.com
Subject:        RE: Help-restore *STMF type objects from a SAVF to IFS
Importance:     High


Evan
Thanks.
Yes now I got it.I was able to copy the save file now.
What I was doing is working with XML Interface for RPG.It is a XML wrapper
in RPG for XML C++ parser (which uses SAX and DOM api's).The objective is to
parse xml, validate it and put xml to db2 (which finally I was able to do
just now although have no idea what's happening at the back and keep
debugging ???JJ).It is equivalent to a java version which came
www.as400.ibm.com/developer/java/xml/db_xml.html
The XML wrapper can be downloaded as a savefile from
www.alphaworks.ibm.com/tech/xml4rpg
The savefile when restored contains xml4prdoc which contains the full
documentation which was intented to be put on to the IFS and...
Thanks again
Rizwan


-----Original Message-----
From:   Evan Harris [mailto:spanner@ihug.co.nz]
Sent:   Sunday, July 22, 2001 12:37 PM
To:     MIDRANGE-L@midrange.com
Subject:        Re: Help-restore *STMF type objects from a SAVF to IFS

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



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.