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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between iter and do?

795


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

641


can you debug ile rpg program using isdb?

823


what are the key words you must use when using a subfile?

777


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2141






how do I declare a table or array in rpg iv?

822


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1138


how can I tell when to replace the array?

781


How can we know running job is batch or interactive?

749


what is the necessary keyword needed to scroll subfile records?

782


What is difference between bind by copy and bind by reference?

1909


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3417


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2380


What is file identifier where we can use?

728


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

2065