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

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

1 Answers  


WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,


what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.

2 Answers  


in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm

2 Answers  


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


What is the difference between iter and do?

0 Answers  


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 importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


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.

3 Answers   iGate, Wipro,


program to find the number of objects used in a given program through a display.

2 Answers   IBM,


Categories