× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hard to say ... I read this piece long ago ...

[1][IMG]
[2]07.08.The-Seven-Deadly-Sins-of-ILE
PDF-Dokument · 77 KB

... and go with those rules.
And that the whole construct works with the CLLE in *NEW and doesn't work
with the CLLE in *CALLER/DAG seems to proof the "Deadly Sins" of Jon and
Susan.
But ... I'm really curious about WHY this construct fails from the DAG
when the *SRVPGM is in it's own activation group ... may Jon or Susan can
give us more details about the why and how.
Regards,
Daniel

Am 20.07.2022 um 16:59 schrieb Jay Vaughn <jeffersonvaughn@xxxxxxxxx>:

Daniel, and yes the pgm that calls the *CALLER does run in the
DFTACTGRP.
So let's go with this is a bad idea (I did not implement this btw :))
How can that be impacting my situation?  Not really concerned about
other
adverse reactions from this... I need to identify my issue.
Jay
On Wed, Jul 20, 2022 at 10:46 AM Jay Vaughn <jeffersonvaughn@xxxxxxxxx>
wrote:

Daniel,

I did try the rclactgrp of my named actgrp prior to each subsequent

callprc and that caused even bigger issues.

in my *MODULE source I have the following...

exec sql

 set option

 commit = *NONE,

so commitment control should not be an issue, I wouldn't think.

Jay

On Wed, Jul 20, 2022 at 10:37 AM Daniel Gross <daniel@xxxxxxxx> wrote:

Hi Jay,

just a thought, but "who" is calling the CLLE with *CALLER? Is the
caller

in the DAG? With *CALLER it is possible that the CLLE is running in
the DAG

- which is most probably a bad idea.

Does it help, if you do a RCLACTGRP <your_named_actgrp> ?

Another thought - what about commitment control? Have you committed
or

rolled back your changes?

Without the concrete source source, it's hard to diagnose that
issue.

HTH

Daniel

Am 20.07.2022 um 16:18 schrieb Jay Vaughn
<jeffersonvaughn@xxxxxxxxx>:

I have a *SRVPGM that runs in a named activation group.

It contains a procedure that does the following...

- dltf qtemp.file

- create table qtemp.file

- inserts/updates the qtemp.file

From a CLLE pgm that runs in *NEW, I am testing this procedure
call in

the

*SRVPGM.

The procedure is called 4 different times with no issues.
 Expected

results

for each call.

Now I place those same 4 calls to the procedure into a different
CLLE

that

runs in *CALLER (this may have nothing to do with it but just
throwing

it

out there).

On the 2nd call to the procedure when it tries to do the DLTF, it
cannot

allocate the file and fails.

I have tried to DLCOBJ the file from lock state *SHRRD prior but
that

does

not work.

(when i do a wrkobjlck on the qtemp.file I see it is locked with
*SHRRD)

What are my other options to overcome this?  Why does it not do
this in

my

test CLLE?

tia

Jay

--

This is the RPG programming on IBM i (RPG400-L) mailing list

To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,

visit: https://lists.midrange.com/mailman/listinfo/rpg400-l

or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx

Before posting, please take a moment to review the archives

at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription

related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate

link: https://amazon.midrange.com

--

This is the RPG programming on IBM i (RPG400-L) mailing list

To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,

visit: https://lists.midrange.com/mailman/listinfo/rpg400-l

or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx

Before posting, please take a moment to review the archives

at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related

questions.

Help support midrange.com by shopping at amazon.com with our
affiliate

link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

References

Visible links
1. http://andabe.altervista.org/ILE/07.08.The-Seven-Deadly-Sins-of-ILE.pdf
2. http://andabe.altervista.org/ILE/07.08.The-Seven-Deadly-Sins-of-ILE.pdf

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.