Strange eval problem - Two variables updated with one EVAL statement - RPG IV

Posted on 2011-03-17
Last Modified: 2013-12-06
I have a called program which sets two variables with one eval statement.  The compile looks correct.  I have a screen cast which shows the program in debug (values before and after the execution of the statement).  Note the same problem occurs when I type 'Eval ....' on the command line in debug.  Both variables are set to the value.  Sound like a buffer or storage location error, but I don't know where or what to check.   I've attached a compiled listing of the programs and the screencast.  

Thanks you for your help!

Question by:lynn_harris
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 27

Accepted Solution

tliotta earned 500 total points
ID: 35162185
We probably need to see how those are defined. All we can see here is how this program references them.

What does the CALL look like that invokes this program? How are the variables defined back in the calling program? That's where the actual memory is defined. This program references them as being distinct entities, but they are PARMs after all. Reference here may be misleading.



Author Comment

ID: 35162202
Hi Tom,

I will get all the information together and repost it when I get back to my computer.  It will probably be late tonight.  

Thank you .... more soon.


Author Comment

ID: 35163381

Hi Tom,

You were right.  I looked at the calls a number of times, but missed the error until I went back this time.  Sorry to have wasted your time.  (too many hours in front of the screen)  Thank you.  

LVL 27

Expert Comment

ID: 35168721
No problem. It's never a waste of time if it brings an answer closer.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question