Any chance that the compile command default for DBGVIEW is *NONE? Somehow mine got changed to *NONE at one point and I had to change it to *SOURCE.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Dave
Sent: Tuesday, November 14, 2023 12:09 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: No debug view visible
Hi Mark,
The signing on and off did not work. But I see that I am indeed a sinner, so I shall try tomorrow morning by not forcing the service program to activate in the DAG.
I still don't understand why I don't see the source of the main module of the RPG programme but I do have memories of strange things happening whilst mixing OPM and ILE.
-
* Subject*: Re: No debug view visible
- *From*: Mark Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>
- *Date*: Tue, 14 Nov 2023 16:28:07 +0000 (UTC)
------------------------------
Dave,
You created an ILE bound program with ACTGRP(*CALLER), without using
DFTACTGRP(*YES) (only available on CRTBNDRPG or CRTBNDCL), so most likely you now have an older copy of the *PGM that is "activated" in the *DFTACTGRP, so that when you tried to debug it, you are debugging the "old"
(activated) copy. :-/
You can work around this problem by issuing:
RRTJOB RTGDTA(QCMDI)
to start a new "job step" thus clearing out any activation groups, without disturbing your *LIBL, etc.
(or just sign off and sign-on again).
Then try your STRDBG again.
I suggest reading Jon Paris' and Susan Gantner's article on "The Seven Deadly Sins of ILE" ... see:
https://authory.com/JonParisAndSusanGantner/The-Seven-Deadly-Sins-of-ILE
See also:
https://www.ibm.com/support/pages/job-fails-mch3402-deadly-sin-ile
(Even IBM now recommends Jon and Susan's article!) :-)
HTH,
Mark S. Waterbury
On Tue, 14 Nov 2023 at 16:24, Dave <dfx1@xxxxxxxxxxxxxx> wrote:
I tried that but the result is the same. I also saw I could specify
the SRVPGM on the STRDBG command and there is no source available for
that either.
I checked with DSPPGM and DSPSRVPGM and each case there is one module
which indicates DBGDTA *YES
- *Subject*: Re: No debug view visible
- *From*: Rob Berendt <robertowenberendt@xxxxxxxxx>
- *Date*: Tue, 14 Nov 2023 09:29:49 -0500
------------------------------
Just a WAG, but did you try STRDBG PGM(*NONE) and, from the help,
"...or the Display Module Source (DSPMODSRC) command"?
Especially since you are doing a CRTPGM from a module and a service
program?
On Tue, 14 Nov 2023 at 15:21, Dave <dfx1@xxxxxxxxxxxxxx> wrote:
Hello,
I only have STRDBG available but get the message « source not
available »
Creating my first real RPGILE pgm for more than 10 years and there is
no infrastructure in place to help me with compiling.
V7R3
CRTRPGMOD MODULE(MyMod) SRCFILE(QRPGLESRC) DBGVIEW(*ALL)
CRTPGM PGM(MyPGM) MODULE(MyLib/MyMod) BNDSRVPGM((MySrvPgm))
ACGRP(*CALLER)
What’s occurring ?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.