How can we find out whether the job is interactive or Batch
through RPG program?
2) How can we find out through CL program?
Answers were Sorted based on User's Feedback
Answer / rakesh
using RTVJOBA command...
if the TYPE option gives value "1" then it is interactive job.
if the value is "0" it is batch job
| Is This Answer Correct ? | 50 Yes | 0 No |
Answer / syam
use WRKACTJOB. There is "Type" field. If under Type any job
is showing "INT" = Interactive, 'BCH" = Batch, "SBS" =
Subsystem, "SYS" = System, "WTR" = Writer(Printer).
Batch job will run in QBATCH Subsystem/Job and Interactive
job will run in QINTER Subsystem/Job.
| Is This Answer Correct ? | 17 Yes | 6 No |
Answer / sweta p rao
QUSRJOBI API can be used to find out whether the job is
interactive or batch from RPG program
Field QUSJT04 will contain B for batch or I for interactive
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / rashmimalpani
I think...Also for an RPG program if it has display-device
as WORKSTN then it should be interactive program... Please
correct me if m wrong
| Is This Answer Correct ? | 11 Yes | 7 No |
Answer / sreedhar reddy
in RPG, Use PSDS data structure to find Job name.
position 244 to 253 is Job name.
D JOB_NAME 244 253 Job name
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bhupendra tomar
through cl we can find through RTVJOBA cmd.
but in case of RPG i don't know. if you have idea about RPG
then reply
| Is This Answer Correct ? | 1 Yes | 4 No |
What is journalling and commitment control?
how do I play {insert rpg system here}?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.
suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .
Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4
I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?
5 Answers CitiGroup, Symphony,
what is data area and how it is used in rpg program ?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
What are the types of identifiers?