Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RPGLE/STRDBG vs RPG/STRISDB - Debug Problem

337 views
Skip to first unread message

Ammar Farooq

unread,
Dec 3, 2003, 4:58:18 AM12/3/03
to
Hi
I am trying to debug an RPGLE program XYZ which is being called from
ABC (dont have source, and it calls many other programs
before calling the XYZ).
Now in Old version the PFGM was in RPG and to debug the program , I
have to use STRISDB with following options
UPDPROD(*YES)
INVPGM(*NO)
SRVJOB(*SELECT) ===> now here I used to select the API/Job which in
turn calls the program XYZ

In this way I was able to debug the program in RPG

Now in the new release the Programs are in RPGLE and I have to use
STRDBG,
(Posted in Google: http://groups.google.com.pk/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=1d4eafdf.0312020226.71660ad1%40posting.google.com)
I use the following options
UPDPROD(*YES)
OPMSRC(*YES) (used both *yes & *no, but did not work)
DSPMODSRC(*YES)

I compile the RPGLE program with option DBGVIEW(*ALL or *SOURCE)

The source of RPGLE does not stop at the breakpoint, then I wrote a
CLLE PGM being called from XYZ and simply used DSPMSG
in it. Now the error msg in QSYSOPR was


Cause . . . . . : ILE Control language (CL) procedure AF01 in
module AF01 in
program QC24B75360 in library QRPLOBJ detected an error at
statement number
0000000900. Message text for CPF2403 is: Message queue *WRKUSR in
not
found. Use F10 (if available) or the Display Job Log (DSPJOBLOG)
command to
see the messages in the job log for a more complete description of
what
caused the error. If you still are unable to solve the problem,
please
contact your technical support person.


Which is understandable, as the program is being called by API , and
cannot be used interactively, however, the same thing
was possible in older version (RPG)

Now my question is that what is alternative of STRISDB
...SRVJOB(*SELECT) in STRDBG
I have tried the JOB & Function values from the STRISDB
SRVJOB(*SELECT) in STRDBG ...SRVPGM
but got no fruitful results, rather got the msg that OBJECT IN LIBRARY
LIST NOT FOUND.

Any help in this regard will be higly appreciated, as I am unable to
proceed further in my task.

Thank you for your time

Regards
Ammar Farooq

Joep Beckeringh

unread,
Dec 3, 2003, 7:37:49 AM12/3/03
to
Ammar,

It appears you are trying to debug a program that is running in another job.
To do this you must first use STRSRVJOB. Use F4 and fill in name, user and
number of the job you want to service. Then use STRDBG.

BTW: The error message you are getting shows that the job is running an
older version of the program you just compiled. When you compile a program
(succesfully) the old version is moved to library QRPLOBJ and gets a new,
interesting name.

Joep Beckeringh


"Ammar Farooq" <ammar...@yahoo.com> schreef in bericht
news:1d4eafdf.03120...@posting.google.com...

0 new messages