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



How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we fi..

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

Post New Answer

More RPG400 Interview Questions

How Commitment and Roll back control is used in as400, explain with real time senario ???

2 Answers   Acolite, HSBC,


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 )...?

4 Answers  


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

1 Answers   IBM,


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


What is I90(Insure 90)?

1 Answers  


difference between CHAIN and READE?

8 Answers   HCL,


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

2 Answers   Fiserv, IBM,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


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?

5 Answers   Hexaware,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


is this a rpg channel?

0 Answers   IBM,


Categories