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



Hi Terri,

I think there must be another error in your program that is leading to this. Are there other errors on the compile? For example is field FshDte defined differently elsewhere in the program?

As a process of elimination... does the following 4 line program compile for you? If it does, then your problem is elsewhere.

D FshDte S 8 0 INZ(0)
C *DTAARA DEFINE FSHDTE FshDte
C *LOCK IN FshDte
C EVAL *InLr = *On

Or better still...

D FshDte S 8 0 INZ(0) Dtaara
/free
in *lock fshDte;
*InLr = *On ;

Just to clarify on some of the answers you got...

The DEFINE operation simply associates a data area with a variable. It means that when you use the IN and OUT operation with the variable name that this is the data area to be used
They can be the same name - but they do not have to be.
The name of the data area can be up to 10 characters (as with any object). The name of the variable can be up to 4098 characters long - as with any variable in RPG.
The name of the data area is implicitly in upper case (you only have to watch object names if they are in quotes).
The data area does NOT need to exist when you are compiling the program.
If the data area does exist at compile time the compiler does NOT check it - you will get a run time error if there is a mis-match between the variable and the data area.

Regards

Paul Tuohy
ComCon
www.comconadvisor.com www.systemideveloper.com




THarteau@xxxxxxxxxxxxxxxxxx wrote:
Hi,
We are at V5R4. I originally had the data area named FISHDATE (fishmouth pieces of pipe). I changed it to FSHDTE in case it didn't like 8 characters. I have off tomorrow, but will be tackling this again on Monday, Thanks for all the help so far.

<===================================================>

Terri Harteau
Felker Brothers Corporation
****************
"Do not follow where the path may lead. Go instead where there is no path and leave a trail." Ralph Waldo Emerson

****************




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.