|
Hi Richard,
1) Optimization? What does it show on the DSPPGM? CHGPGM
OPTIMIZE(*NONE), signoff & on & try again.
2) Another (older) copy of the program in the library list ahead of
where you think it is.
3) Mismatch between source and object. Are you compiling DBGVIEW(*ALL)
or *SOURCE or is that hidden behind the CRTSQLRPGI? Again DSPPGM I
think should show it, or perhaps in the ILE debugger F14 to see.
Regards,
Kevin Wright
-----Original Message-------
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Richard Reeve
Sent: Tuesday, 3 May 2011 9:43 AM
To: RPG programming on the AS400 / iSeries
Subject: Strange acting program in debug
So, I have this large (20k + lines) program that has me
perplexed. I made some minor changes to a subroutine. When
testing, it did not perform as desired, so I put in debug.
This is where it gets very strange....The subroutine builds
an SQL statement. Then, as I step through in debug, the next
statement is an SQL prepare - but instead the program goes to
a subroutine that isn't even referenced in the subroutine
from which it came. It then goes through a few lines and
oddly returns to the subroutine where it began (although not
where it left off). My initial thought was source/object
mis-match so I recompiled, signed off & on and tried again,
only to have the same result.
I have consulted with 4 programmers in house but we are all
stumped. Does this sound familiar to anyone? Any
suggestion/ideas would be much appreciated.
Thanks.
Warmest Regards,
Richard Reeve
--
This is the RPG programming on the IBM i / System i
(RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.