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

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

5 Answers  


I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.

9 Answers   IBM,


How to print Superscript / Subscript from RPG400

1 Answers  


How do you do indexing in a physical file?

2 Answers  


list down and describe the sub systems vailable

5 Answers   IBM,






I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.

1 Answers   IBM,


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


3 members in a databasefile .how to read records from all the members?????????

4 Answers   CTS,


What is ment by record level identifier?

0 Answers  


How many program bind in one module....

0 Answers  


I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

1 Answers  


Categories