× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: How to Debug ILE RPG Batch Pgm
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Fri, 3 Aug 2001 01:49:43 -0500 (CDT)


Bob,
   Well said!  You should add this to the FAQ...


On Thu, 2 Aug 2001, Bob Slaney wrote:

> Is this waht you want?
> 
> Specific steps have to be followed in sequence in order to use the
> Source Debug facilities to debug a batch job:
> 
> 1. Submit job to run in batch with HOLD(*YES).
> 2. Use WRKSBMJOB to obtain information about the job you want to debug,
> that is:
>      ? Job Id
>      ? User Name
>      ? Job Number
> 3. Enter the command STRSRVJOB for the Job above using the information that
> you
> retrieved via WRKSBMJOB.
> 4. Enter the STRDBG command for the program that the batch job is running.
> The
> source view of the program is displayed.
> 5. Press F21 to obtain a command line.
> 6. Enter WRKSBMJOB from the command line to release the batch job - a
> System
> Message will appear allowing you to press F10 to enter Debug commands or
> Enter to run the program.
> 7. Press F10 - a Command Entry screen will appear.
> 8. Use DSPMODSRC from the Command Entry display and set breakpoints where
> desired.
> 9. Exit DSPMODSRC (F3).
> 10. Exit the Command Entry screen (F12) - the System Message from Step 6).
> will
> appear again.
> 11. Press enter to run the program.
> 12. Program will now halt at breakpoint.
> 13. Debug program as normal.
> 14. When the program/Job has completed execution, close out the process
> with
> ENDDBG and ENDSRVJOB.
> 
> Bob Slaney/Atlanta/IBM@IBMUS (Lotus Notes)
> Internet id: rjslaney@us.ibm.com
> VM id: DALVM1.RJSLANEY@VM
> 
> Tieline 596-3022 Direct (770)835-3022
> Fax tie 596-3912 Direct (770)835-3912
> 
> IBM Learning Services
> iSeries Courseware Developer
> IBM Corp.
> 3100 Windy Hill Road
> Atlanta, GA 30339
> Internal Zip WE3A1
> 
> 
>                                                                               
>                                         
>                     "Parvez Mirza"                                            
>                                         
>                     <meinhindustani@ho       To:     RPG400-L@midrange.com    
>                                         
>                     tmail.com>               cc:                              
>                                         
>                     Sent by:                 Subject:     How to Debug ILE 
>RPG Batch Pgm                               
>                     owner-rpg400-l@mid                                        
>                                         
>                     range.com                                                 
>                                         
>                                                                               
>                                         
>                                                                               
>                                         
>                     08/02/2001 09:38                                          
>                                         
>                     AM                                                        
>                                         
>                     Please respond to                                         
>                                         
>                     RPG400-L                                                  
>                                         
>                                                                               
>                                         
>                                                                               
>                                         
> 
> 
> 
> Hi,
> 
> There is an ILE RPG Batch Program which posts Transactions. It accepts data
> 
> from Data Queue and then processes it.
> My problem is that I'm not able to debug that program.
> 
> The program was running in batch. I did STRSRVJOB and then STRDBG.
> But when I reached there in the program, I pressed F10=Step and the program
> 
> came out.
> 
> Could you please suggest me how to do it. How to add the break points.
> ADDTRC doesn't work with ILE.
> 
> Thanx,
> 
> Parvez
> 
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
> 
> 
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
> 

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.