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 |
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?
1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?
Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20
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
difference betwen keywords and opcodes
What will happen if we r using seton lr after return or vice versa.
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
can you debug ile rpg program using isdb?