|
Hi, I'm having *LDA trouble ...
Problem:
Pgm situation:
Pgm 1: Selecting a group of data
--> Defines and writes a value in the *LDA value
(Pos.1020-1024), calling pgm 2
Pgm 2: Selecting a single line for processing
--> (Doesn't change the *LDA value at all (simply not
defined in the program)), calling pgm 3.
Pgm 3: Processing the line defined in pgm 2
--> Uses the *LDA (increments the value involved), ending
processing with *LR --> back to pgm 2.
Work situation:
Users start with pgm 1, and for the rest of the time, they toggle
between pgms 2 & 3.
Yet, whenever they leave the stack and have to restart from pgm 1, the
pgm3- *LDA values restart from 0.
(Okay, You'd say the *LDA was not transferred)
But, when the pgm2 - pgm3 toggle restarts ( and pgm-3 is called &
ended) this doesn't "reset" the *LDA value used in pgm3
In debugging,
I found pgm 1 really filling the *LDA with the correct data
When modifying pgm2 to check the *LDA, this was empty, however
On the other hand, after the initial "reset" coming from pgm1, pgm 3
DID increment as it should be, indicating a correct find of the *LDA here.
processing cmds to retrieve & update the *LDA in pgms1 and 3 are
identical ...
Can any of You guys help me ???
Greetings, Michel
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.