Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

iSeries / AS400 FAQ : (Category) Programming : How can I debug an ILE program in batch?

0
10 Posted

iSeries / AS400 FAQ : (Category) Programming : How can I debug an ILE program in batch?

0
10

Brad Stone has a FAQ entry that addresses this: http://bvstools.com/faq.html#RPG If that site is unavailable, here is a list of steps culled from posts to RPG400-L: Using the green screen debugger: • Submit your program to batch. The job MUST be held. You can either hold the job queue (HLDJOBQ) or hold the individual job (HLDJOB) or specify HOLD(*YES) on the SBMJOB command. • WRKSBMJOB/WRKUSRJOB/WRKACTJOB and find your submitted job. Note that the SBMJOB command gives you an informational message with the job name/number. What you need is the job name, user ID and job number – the fully qualified job name. Example: 123456/BUCK/MONTHEND • STRSRVJOB on the held batch job. • STRDBG on your program. Specify UPDPROD(*YES) if needed. You’ll see the source listing if you compiled with DBGVIEW(*LIST) or *SOURCE. • Press F12 to exit – you cannot set a breakpoint yet. • Release the job so that it becomes STATUS(*ACTIVE). • You’ll see a display asking if you want to debug or continue. Press F10 t

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123