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



No I am not using dtaara(*VAR:myName)?
I am passing the 'userid' in, in an UDS.

0031.00 D                UDS                
0032.00 Duserin                   1     10A

and then do this.
C     *dtaara       define    userin        userdta          10

I get an error:
Data area *LIBL/USERIN was not found (C G D F)

This is the statement giving the error:
C                   in        userdta

I am just starting to get in to RPGLE so a lot of this is new to me.


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



Questions:

a) Are you using DTAARA(*VAR:myName)?
b) Does the length of the data structure or variable match the length of
      the data area?
c) Does the data type of the variable match the data type of the data
      area?
d) What errors are you receiving?
e) How does your code work?


On Thu, 15 Dec 2005, Willie J. Moore wrote:

> What I need to do is the following: 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.
>
> Any help would be greatly appreciated.
> Willie Moore
>

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.