steps for debugging two rpg programs????

Answers were Sorted based on User's Feedback



steps for debugging two rpg programs????..

Answer / samul

If you question is related to debug 2 pgms
(PGMA>>>Calling>>PGMB)both are rpg pgms.

Compile PGMA with source type(*SRCDBG) and PGMB with
(*Source)

1)STRDBG PGMA

2)In debuging view press F14 and selct option 1 ,specify
pgm name ,library.

3)press enter ,select module source from list,add break
point in PGMB

4) Press F14, add brk point sin PGMA.

5) Call PGMA

It will start the debugging for 2 pgms


Hope it's enough ....

Cheers.. Samul


Is This Answer Correct ?    11 Yes 1 No

steps for debugging two rpg programs????..

Answer / sunil kumar

what ever samul told above steps those are correct.

Is This Answer Correct ?    1 Yes 0 No

steps for debugging two rpg programs????..

Answer / daithuan

Samul is correct but his answer applies only ILE RPG not OPM RPG.

Is This Answer Correct ?    0 Yes 0 No

steps for debugging two rpg programs????..

Answer / sudhir

STRISDB PGM(PGMNME) UPDPROD(*YES) invpgm(*YES)

You dont need to have break points for RPG(OPM).
hit F14 (SHIFT F2) and use option 1 to add the programs you
want to debug.. Just hit F5 and you can continue your
debug..

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More RPG400 Interview Questions

How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?

11 Answers   Bank Of America, CSC, IBM,


what is file identifier wher we can use

1 Answers   IBM,


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  






When a object will be locked & when a record will be locked? Plz explain.

2 Answers  


while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.

10 Answers   Four soft,


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


how do I preserve and clean the array?

0 Answers   IBM,


how do u track msg in cl pgm???

1 Answers   CTS,


1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


Categories