Willie,

Don's third option (QTEMP) would work. Every job has its own QTEMP library. Even if the user signs on to two workstations, QTEMP is unique to the job. It's like the old RETAIN-J files on the S/36.


        * Jerry C. Adams
*iSeries Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
        615.893.8633x152
fax
        615.995.1201
email
        jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Willie J. Moore wrote:

Donald,
Would you please show me an example of the first two. Cannot use the last 
suggestion because has to be different for each user that signson.
Willie..

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Fisher, Don
Sent: Thursday, December 15, 2005 10:06 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Help with data area in RPG


One possibility would be to populate the local data area (*LDA) with
whatever information you want to store in the data area.  Another thought
would be to pass the information into the RPG program as parameters.  A
third possibility would be to create the data area in QTEMP using the same
name for the data area each time.

Will any of those work for you?

Donald R. Fisher, III
Project Manager
Roomstore Furniture Company
(804) 784-7600 extension 2124
DFisher@xxxxxxxxxxxxx

<clip>
Create a data area using the 'userid' field in a CL program. This I have
done.  Where I am having problems is calling this data area in my RPG
program. I cannot get the created data area to read in my program.
The data area can be different depending on who runs the job.
<clip>


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.