|
Most of the time when a program runs okay in debug but doen't when not
in debug, the problem is with a called program. Debug lays out the
parameters differently and will protect against some memory corruption.
I'd look here
'* Create Member History - Member Date History *
C CALL 'UUPGXFR'
90 Create Member H
C PARM *BLANK SevenA
C PARM AIAICD SevenN
Member Referenc
C PARM TODAYSDATE2 SevenN2
Date Entered
C PARM TransCode SixA
Transaction Cod
C PARM TransDesc ThirtyA
Description
C Eval *In35 = *On
Age Record Written
and make sure all the parameter lengths line up between this program and
the called program.
Another clue: *In35, if off, skips calling your print subroutine.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Kuznitz
Sent: Sunday, August 30, 2009 11:58 PM
To: Midrange Systems Technical Discussion
Subject: Re: Runs fine in Debug mode
Thank you for the reply...
On 31 Aug 2009 at 0:00, M. (M. Lazarus <midrange-l@xxxxxxxxxxxx>)
commented about Re: Runs fine in Debug mode:
Gary,advice.
I think we'd need to see the code to give you more intelligent
I'm happy to show the code to anyone. How would you like to see it?
If you like you can see it at: http://tinypaste.com/31479 Or if you
suggest a more convient way let me know.
Thank you,
Gary
-markfine.
At 8/30/09 11:34 PM, you wrote:
Thanks for the reply...
On 30 Aug 2009 at 22:10, Jim (Jim Franz <midrange-l@xxxxxxxxxxxx>)
commented about Re: Runs fine in Debug mode:
Is this RPG or RPGLE? Input primary or IF?RPGLE
Input primary
SQLRPGLE?No
OVRDBF?None
Are you using QTEMP?No
What makes you sure it's not reading the "not printed"?It is reading the file just fine because it writes every record just
It just doesn't print every record.
Every time it runs it skips printing the same records.
Gary
Jimmode when
----- Original Message -----
From: "Gary Kuznitz " <docfxit@xxxxxxxxxxxx>
To: "Midrange Systems Technical Discussion"
<midrange-l@xxxxxxxxxxxx>
Sent: Sunday, August 30, 2009 9:18 PM
Subject: Runs fine in Debug mode
I have a program that I can't figure out. It runs fine in debug
both in andI am
steeping through the program. When I run it without debug it
skips printing some of the records. I'm running it
interactivly on the same screen
out of debug.
Since it's on the same screen it runs with the same user and the
fine.record 9 andsame library list.
It's printing record 1 & 2 then it skips to record 8 it skips
one file andprints record
10,11, 12, skips 13 & 14 and prints record 15.
It's a simple program that reads one file sequencialy, writes
prints a
report. The file it's writing is processing every record just
I don't understand how it can skip some of the records when it's
not in debug mode and process all the records when it is.
Any ideas?
Thanks,
Gary Kuznitz
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.