1.How you will find the program is batch or online in cl
pgm?
2.How you will end the batch pgm when the job runs? write
an logic?
3.In wich command the option *drop is used?

Answers were Sorted based on User's Feedback



1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm w..

Answer / syam

A1. RTVJOBA TYPE(&AA) if value of AA = 0 Batch job
value of AA = 1 interactive job (online)
A2. WRKSBMJOB then OPT 4 to end.
A3. CPYF FROMFILE(MYLIB/MYFILE) TOFILE(MYLIB/MYFILENEW)
FMTOPT(*DROP *MAP)

Is This Answer Correct ?    13 Yes 0 No

1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm w..

Answer / gagan44

2) ENDJOB is used to end the batch Job in a program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

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 DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?

1 Answers   TCS,


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


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.

0 Answers  


In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  






Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

2 Answers  


Maximum how many files declare in rpgle

3 Answers   TCS,


how do you use commitment control in rpg?

0 Answers   IBM,


When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?

5 Answers   Mphasis,


Need a sql query: retrieve all duplicate records in table?

1 Answers  


I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?

6 Answers   Virtusa,


Categories