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

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 Answers  


What is the purpose of FRCDTA keyword?

3 Answers   IBM,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file

1 Answers  


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,






How can you determine the number of characters in a variable?

3 Answers  


this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002

1 Answers  


A rpg or clp command to find if the file field is defined as a character or numeric field.

1 Answers   IBM,


Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?

1 Answers  


how can I tell when to replace the array?

0 Answers   IBM,


Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?

6 Answers   CSC,


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


Categories