× 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.



I believe you can get round this by having your menu program do a TFRJOB (Transfer Job) and putting the program call into the request data. However, like others, it's been a long time since I messed with anything like that.

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave Shaw
Sent: Friday, September 27, 2013 9:00 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: CALL Programs so that they show on WRKACTJOB

It's been a long time since I did anything with this stuff, so please forgive me if misremember any of it.


You're correct, it does have to do with invocation levels.  I believe that your MEZ008 program is the first program in your current invocation level, so it's the one that shows on WRKACTJOB.  As I recall, starting a new invocation level involves using a request processor to run your command, rather than directly executing it with QCMDEXC.  Unfortunately, I think it's then the request processor (QCMD, for example) that shows up, rather than the program you're calling.  If you write your own command processor, there are naming tricks you can use to get around that, assuming I'm remembering correctly, but of course they add overhead.  The documentation on using request processors, and writing your own request processor, is in CL Concepts.

There may also be other ways to accomplish what you want, but this is the one that I played with years ago.

Good luck!

 
Dave Shaw


________________________________
From: Jane Taubman <janetaubman@xxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, September 27, 2013 6:01 AM
Subject: CALL Programs so that they show on WRKACTJOB


I have a custom menu program RPGLE (5250) which calls other RPG programs
using QCMDEXEC with the CALL command.

However when you look on WRKACTJOB they all show with the name of the menu
program, so you get pages of people in MEZ008,  you can of course see what
program they are in using the display Call stack,  but it would help if the
program they called was shown.

I seem to remember it's something to do with "invocation levels",  but I
can't find anything with a Google search as I suspect I am remembering it
wrong.

Please could someone point me in the right direction.

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.