RTVJOBA TYPE function in UI
-
- New User
- Posts: 2
- Joined: Thu Jun 17, 2010 12:29 pm
- First Name: Tim
- Last Name: Holt
- Company Name: Integrated Corporate Solutions
- Phone: 2567608239
- Address 1: 501 S Wood Ave
- City: Florence
- State / Province: Alabama
- Zip / Postal Code: 35630
- Country: United States
- Contact:
RTVJOBA TYPE function in UI
We have CL programs that RTVJOBA TYPE(&TYPE) to determine if the job is running in batch or interactively. If it is interactive we will display a prompt screen but if in batch we use settings from the LDA or some other source. The type in UI programs returns as batch when we need for it to show as interactive. What can we check to see if the job is running as a UI session (other than the job name of "PROFOUNDUI")?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: RTVJOBA TYPE function in UI
Yes, Profound UI sessions run in batch jobs. So, the information RTVJOBA is giving you is technically correct.
You can determine if you are running in a Profound UI session by looking for environment variable 'PROFOUNDUI' in the job. The PUI session controller sets this to '1'.
For example:
You can determine if you are running in a Profound UI session by looking for environment variable 'PROFOUNDUI' in the job. The PUI session controller sets this to '1'.
For example:
RPG CODE
Note that if you are running in a Genie session, none of this applies. In that case, you have a 5250 interactive job, and RTVJOBA would indicate this.Who is online
Users browsing this forum: No registered users and 1 guest