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



Buck,

The TYPE value for RTVJOBA returns '1' for INT jobs and '0' for everything
else, I believe. I can't think that any of the other types could be an
interactive job, under any meaningful definition of the word 'interactive'
as it applies to jobs on the i.

Rory


On Thu, Jan 17, 2013 at 11:03 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 1/17/2013 1:48 PM, James H. H. Lampert wrote:

Is there an easy way for ILE RPG program to know whether it's running in
a batch job or an interactive job?

QUSRJOBI, JOBI0100, Job Type and Job Subtype.
A reasonable question is what do YOU consider to be a batch job?

ASJ (Autostart)
BCH (Batch)
BCI (Batch immediate)
EVK (Started by a program start request)
INT (Interactive)
M36 (AS/400 Advanced 36 machine server)
MRT (Multiple requester terminal)
PJ (Prestart job)
PDJ (Print driver job)
RDR (Reader)
SYS (System)
SBS (Subsystem monitor)
WTR (Writer)
blank (Alternative user subtype--not an active job)
--buck

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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.