Home > AS/400 News > STRSRVJOB
AS/400 News:
EMAIL THIS

STRSRVJOB

17 Mar 2004 | Search400.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

One command on the top of Search400.com member Vince Shank's list is STRSRVJOB. He says this command is great for debugging batch programs. Here's how he uses it:

"What I do is put the jobq that the job is going to be submitted to on hold (HLDJOBQ jobq(qbatch)). Then I submit the job. Then put the job on hold. Then release the JOBQ (RLSJOBQ JOBQ(QBATCH)). Take an option 5 on the job. At the top of the screen you see the parms that you need to enter into the command STRSRVJOB (Number/User/job). Now you can STRDBG PGM(program name) and add break points. Then all you have to do is release the job. It's much easier than it sounds.

"You have to release the job first before you start the debug. The reason being, the job must be active in order to debug a particular program. I usually paste the command after releasing the job then press F10 so the debug stops at the first line. Then once the debug panel appears, break points can be added. In other words, you have to be quick depending on how fast the batch job reaches the program you want to debug.

"Another trick can be to call a program that has a delay job (DLYJOB) for the amount of time required to STRSRVJOB and start debugging. That way you don't have to hold jobq(s) and RLSJOBQ(s)."

Here are a couple more tips that use STRSRVJOB:

  • Simple screen capture
    Here is a simple technique for capturing the information on a screen and using it in a program. This program eliminates a lot of typing when using the STRSRVJOB command to debug several jobs.
  • Two more tips on batch debugging
    In his second tip in this article, Search400.com member Pete Sadler points out how helpful STRSRVJOB is when servicing a batch job.

>> Return to list of commands.



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


iSeries Application Development: CL, COBOL, RPG, VB, ILE, Java
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts