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



Ash;

You can create almost any object in the QTEMP library, data queues, data areas, tables (files) user spaces... See the CRT CL commands and/or SQL CREATE (TEMPOARY) TABLE

From your previous mail I gather you just want to store some values of some variables. You can do that quit easily with any of the above mentioned objects, each has their good points and bad.

I, personally, avoid using QTEMP for stashing variables because it can be difficult to debug. You have no access in 6.1(?) and very little access in previous versions of the OS, to objects in a jobs QTEMP library. Unless you are debugging the app in the same interactive job, which in my environment is impossible. Look at the design of the app and see if you can avoid using QTEMP.

This is not to say that using QTEMP is bad or incorrect, but be aware that it can add some complexity to an app when it comes to debugging it. I use QTEMP regularly for temporary tables and user spaces, it just depends on the needs of the app.

Duane Christen


--


Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx

Visit PAETEC.COM


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ashish Kulkarni
Sent: Thursday, August 13, 2009 10:57 PM
To: RPG programming on the IBM i / System i
Subject: Re: Can i use QTEMP as HttpSession

HiI already have web application which is calling RPG program and the way we do it, we make sure that each user gets on job on AS400 and so we can add anything in QTEMP and it is for the same user.

But, i am not working on web application, i am working on a RPG application which wont be called from web application,

What i am trying to do it bring HttpSession type function in RPG using QTEMP library, What i am trying to say is how can i use QTEMP like HttpSession in a RPG application (Not a web application), What i want to do is store temporary information in QTEMP and then read it back when i need it,

Ash

On Thu, Aug 13, 2009 at 2:26 PM, Chamara Withanachchi
<chamaraw@xxxxxxxxxx>wrote:

Hi,

We are doing the same for our reports, users are coming through our
web site and requesting reports. All reports run in our i and creating
results in a table in QTEMP and our web program access it.

All heavy processing happning @ the RPG.

This can be done if u r doing in dame web session with out any problem.



Regards,

Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)

WWW.RPGIV.INFO
Mob: +971 50 5698644
Tel: +971 6 5595887
chamaraw@xxxxxxxxxx
www.rpgiv.info
i want to be future ready. i want control. i want an i.


Sent from my BlackBerry(r) wireless device

-----Original Message-----
From: Ashish Kulkarni <ashish.kulkarni13@xxxxxxxxx>

Date: Thu, 13 Aug 2009 11:12:38
To: <rpg400-l@xxxxxxxxxxxx>
Subject: Can i use QTEMP as HttpSession


HiIf i am doing web development i can use HttpSession to store
temporary objects, i can use setAttribute to save object and
getAttribute to get this saved object back. I can store any kind of
information to pass along to different web pages etc.

Can i use QTEMP in same way, off course there are no methods to do so,
i was thinking like creating a table with key and value, but this
would not handle various data types, i wont be able to save char, or
decimal into to.

But this would be still useful to save all information as char and
then write and read from this table using a service program or copy
book function.

Any suggestions, has anyone done some thing like this before?

Ash
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-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.