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 |
How Commitment and Roll back control is used in as400, explain with real time senario ???
Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?
i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?
suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
why we do STRSRVJOB in batch debugging in as400
What is I90(Insure 90)?
difference between CHAIN and READE?
What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52
i want to retrieve record b/w 2 dates in as400
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
is this a rpg channel?