Sorry for any confusion. I meant that the SrcStmt option is *also* a good option on the h-spec as it helps with finding out which line of your program failed at runtime (as opposed to digging out a compile listing and looking at the source statement numbers). It has little to do with file IO.
In RDP you can "monitor" your fields and (if you don't have the NoDebugIO option set) you can watch each one change individually with each step on a single record read. But you can also easily find out which field in which record is in error through a program dump, and using the NoDebugIO option means you don't have to press the step option 35 times for every record read in the program (assuming 35 fields on a record just as an extreme example).
-Paul.
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave
Sent: 08 June 2012 12:19
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Fw: Debugging - stopping at F-Spec
2012/6/8 Paul Bailey <PaulBailey@xxxxxxxxxx>:
Karleen has the best option, IMO, because the additional *SrcStmt is very useful for working out which source line a runtime error appears on.
Hi Paul, what do you mean exactly by that?
I've often found the iodebug information useful when a program crashes on i/o. With STRDBG you can use F15 to show the fields and step through them to the one that is causing the problem. Is there an equivalent in RDP?
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
Scanned by MailDefender - managed email security from intY - www.maildefender.net
Important
This email transmission and any files with it are strictly
confidential to the intended recipient and may be legally
privileged. Any views or opinions presented are solely
those of the author and do not necessarily represent those
of BHSF. If you are not the intended recipient, you must
not copy, disclose or distribute its contents in any way.
If you have received this e-mail in error, please notify
the sender and delete the e-mail from your system.
We have taken steps to ensure this e-mail and attachments
are free from any virus but do not accept any
responsibility once this e-mail has been transmitted. You
should scan any attachments for viruses.
No contract may be concluded on behalf of BHSF Limited by
e-mail.
Registered Office:
BHSF Limited
Gamgee House, 2 Darnley Road, Birmingham B16 8TE.
www.bhsf.co.uk
Registered in England number 35500.
BHSF is authorised and regulated by the Financial Services
Authority.
As an Amazon Associate we earn from qualifying purchases.