HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG)
STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING
WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD
STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE
HELP ME....



HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGI..

Answer / chandu

My Self found answer......

it is also normal process like as batch job steps...
when we found job in MSGW using WRKSBMJOB,simply we can enter into job log using 5 option.
after we start at command line.
step1-> STRSRVJOB jobnum/jobname/user
step2-> STRDBG pgmname
when we press enter,the control will directly goto
the error occurred line,here we can change any values directly using EVAL then after press F3,it will sho wjob log screen,then again press f3 to come to MSGW screen.here press 7(display message screen) to continue the execution of batch job we press G(continue).then it will execute remaing steps without abnormal ending the job.

Is This Answer Correct ?    16 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20

5 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?

4 Answers   Virtusa,


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  






when will come session device error?

4 Answers   TCS,


What is the difference between copybooks and subprocedures in as400?

0 Answers  


parameters cannot be passed in which one???

4 Answers   CTS,


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD

4 Answers   Manhattan,


Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?

4 Answers   IBM,


Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


Categories