0 pts.
 Batch or Interactive
Is there an easy way in RPGLE to determine if the program is running in batch or interactive, like you can in CL? Thanks...

Software/Hardware used:
ASKED: April 4, 2007  11:34 AM
UPDATED: September 26, 2007  4:22 PM

Answer Wiki:
A call to API program QUSRJOBI will pass back information regarding the job it is run in. Job type code is one of the pieces of information that gets passed from this. The Information Center for you OS version explains how to use this API under the Programming/API section. The API finder option off this will allow you to search for an API in this case you can find it by name.
Last Wiki Answer Submitted:  April 4, 2007  12:54 pm  by  WaltZ400   645 pts.
All Answer Wiki Contributors:  WaltZ400   645 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You can check for the job type in
rtvjoba (’0′ is Batch & ’1′ is interactive)

 30 pts.