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



The extension .SAVF was a mistake in the e-mail. Sorry.

I was using the correct extension ".FILE" without result.

Yes the IFSFileInputStream work. But the access is by the TCP servers
(as-file i think) and i want to access it in native form ( for performance)

Just now i am copying (CPYTOSTMF, and CPYFROMSTMF) the SAVF to the IFS, and
access it there.

Of course this have the overhead of the copy.

My test was:
        SAVOBJ (to the SAVF)
        CPYTOSTMF ( the SAVF to a stream file in the ifs)
        access the stream file with java InputStream, and create a .zip file
in the IFS

After that i try to regenerate the SAVF with the inverse process and restore
the objects, and it run sucessfully.

But i don't want the overhead of the copy.

----- Original Message -----
From: "Dave Wall" <dawall@us.ibm.com>
To: <java400-l@midrange.com>
Sent: Tuesday, May 28, 2002 12:00 PM
Subject: Re: Access a SAVF



Your extension was wrong when using FileInputStream.  It should be .File --
"/QSYS.LIB/OPERA.LIB/TEST.FILE".  I'm not saying you will be able to
open/read the file.  I think you will because the Toolbox
IFSFileInputStream class works, but I didn't write a testcase to verify
open/read.  At least you won't get a file-not-found error.  Green-screen
command wrklnk is a good command to use to verify QSYS object names
accessed via IFS naming conventions.

One other option you have is FTP.  You could FTP the file from QSYS to a
file in IFS using the FTP class in the Toolbox.  I'm not saying this is a
good option for getting data, but it is one that will work.  FTP does have
an advantage when putting.  When you put savefile data via FTP, the iSeries
FTP server does the necessary data manipulation to preserve the file as a
save file.  My experience is when you simply copy over a save file, the
iSeries no longer sees the file as a well formed save file.


David Wall
Toolbox for Java
iSeries ODBC Driver for Linux




                      José Luis Calvo
                      <jlcalvo@adinet.c        To:
<java400-l@midrange.com>
                      om.uy>                   cc:
                      Sent by:                 Subject:  Access a SAVF
                      java400-l-admin@m
                      idrange.com


                      05/24/2002 05:13
                      PM
                      Please respond to
                      java400-l





This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
I am trying to access a SAVF from a java program running locally in an
AS/400 (iseries), with the following results:

    using FileInputStream: File /QSYS.LIB/OPERA.LIB/TEST.SAVF not found.

    using IFSFileInputStream: the access is by TCP/IP to LOCALHOST

    using jdbc (db2_classes.jar): File TEST in OPERA is not a database file

I just want to know if this is correct.

I like to access natively the SAVF, for better performance.

Do you have any comments?

P.D.: Sorry for my english. I speak spanish.
--

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.






_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.