Solved

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

Posted on 2011-03-17
4
629 Views
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!
Lynn  

lynn-harris-430883.flv
Program.txt
0
Comment
Question by:lynn_harris
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
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.

Maybe.

Tom
0
 

Author Comment

by:lynn_harris
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.

Lynn
0
 

Author Comment

by:lynn_harris
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.  

Lynn  
0
 
LVL 27

Expert Comment

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

Tom
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
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.

776 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