Has this program been recently changed? Maybe you are hitting a copy in
QRPLOBJ. Check your call stack while running the program outside of
debug.
Just a thought,
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
Young i Professionals
http://www.youngiprofessionals.com
"John Furniss" <JFurniss@xxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
03/27/2009 10:50 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
"RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Runs in debug only
List
I have a very simple RPGLE program that simply does a READ to get the
one and only record in a file, then uses that value to CHAIN to another
file, then if the CHAIN fails, does an EXCEPT to print a line on a
report. Very simple. I noticed that the verbiage was not being printed
when I knew it should have been, so I put it in DEBUG mode, stopped it
at the READ statement (which is in a group of LR statements if that
makes any difference) then stepped through with F10. When I do this the
program works as designed. But, when I run the job without debug, the
EXCEPT is never called. Has anyone seen this? I noticed this same
problem a few times in the past, but when I ran it in debug, it seemed
to 'flip a switch' and any subsequent runs would work fine. But this
only works in debug mode. I searched the archives but came up empty.
What am I missing?
Thanks much,
John Furniss
Applications Programmer
Allied Machine & Engineering, Corp
Phone: 330-343-4283, ext. 8371
email: jfurniss@xxxxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.