× 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: Java Programs that Access Files created in QTEMP
  • From: "DUCRET Gilles (GVA)" <Gilles.DUCRET@xxxxxxxxxxxxx>
  • Date: Wed, 26 Jul 2000 17:40:13 +0200

Title: RE: Java Programs that Access Files created in QTEMP

You can read files in QTEMP as long as you use the same connection
that was used by the program who created the files in QTEMP.

What we do is:

we get a connection.
By using this connection we call a stored procedure.
This stored procedure create files in QTEMP.

When the stored proc returns we keep the connection and give it
to the methods that will read the tables in QTEMP.

Then we release the connection.

If you use two different connections you won't be able to read the
files in QTEMP

Gilles

-----Original Message-----
From: Andrew_Goodspeed@lbss.com [mailto:Andrew_Goodspeed@lbss.com]
Sent: mardi, 25. juillet 2000 18:26
To: JAVA400-L@midrange.com
Subject: Re: Java Programs that Access Files created in QTEMP




Yes, but the question is which QTEMP?

If you are running programs over a single  AS/400 connection (within the same
AS/400 job), then there is only one QTEMP, and there should be no problems.  The
problems occur when you, for example, create a file in QTEMP from a program run
over a connection, and then try to access it with a JDBC request, which is
served by a different job with its own QTEMP; of course the file is not going to
be there.

As with most thing, it comes down to figuring out what you are trying to do, and
picking an appropriate solution.

Is that at all helpful?

Andrew Goodspeed
London Bridge Group
Atlanta (Norcross), GA  USA




>Has anyone created a file in QTEMP and used a java program to access it?
>I'm new to Java and wanted to know if this is easy to do and if there are
>any special considerations.  Any code examples would be of great help.
>Thanks in advance.


+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---



**********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the exclusive use of the addressee(s) only.
You should not disclose its contents to any other person.
If you are not the intended recipient please notify the sender
immediately.
**********************************************************************

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.