Hmm... not so obvious now that I revisit... Since that text was not in the most obvious place; i.e.: Help -> Eval

Instead that text was found in:

Help -> "RPG language examples" -> "Display a Variable - RPG"

Regards, Chuck

On 06-Jul-2010 12:41, Dennis Lovelady wrote:
This is fantastic, and it works for me, but tell me: where did you find that
in the help? I did look, didn't see.


When I compile there are no errors. The 'EVAL USER' shows up
on the 'Debug' line and when I place the cusser on the field
is where the 'Syntax error' displays.

It acts like USER is a reserved word within STRDBG. For example,
if you type:

EVAL EVAL

EVAL QUAL

Or EVAL with other debug commands, you will get the same
complaint, same CPF7E15 error, et cetera.

If this is a reserved word we are going to have to change a
lot of files and programs.

Well, the fact that the debug tool doesn't display a particular
variable isn't necessarily cause for mass change to your
programs. That is, unless the value of USER is critical to the
debug process and cannot be determined through other means. I
wouldn't change anything yet. Although I haven't landed on a
solution - I did give it the old college try and haven't quite
given up yet - there may be some help from IBM or your service
vendor on this. I'd recommend calling for help.

Do let us know what you find.


According to the help text:

Display a Variable - Help


Debug command: EVAL %VAR(EVAL)

Result: DEC = 22.1

Comment: If the variable has the same name as a debug
command, the %VAR keyword must be used.


So for this specific example, issue: EVAL %VAR(user)


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.