what is the difference between the procedure and module in
ILERPG?

Answers were Sorted based on User's Feedback



what is the difference between the procedure and module in ILERPG?..

Answer / paras

A module is a non executable program and it contains one or
more procedures. If you have modules without procedure then
it means that it is having only one default procedure and
in case we can use CALLB. But if a module is having more
than one procedure then we can give explicitly the
procedure name to be called in case of CALLP
Out of these three Callp is the most efficient one.

Is This Answer Correct ?    29 Yes 7 No

what is the difference between the procedure and module in ILERPG?..

Answer / bhupendra tomar

WE COMPILE A MODULE BUT WE RUN A PROCEDURE.

Is This Answer Correct ?    14 Yes 5 No

what is the difference between the procedure and module in ILERPG?..

Answer / svankipu

A module is a non-runnable entity and it contains 1 or
more procedures. If there's no procedure in the module, then
it means it has only one default procedure with the same
name as that of Module.

Any way one needs to compile the module with
opt-15(CRTRPGMOD) & then compile the program, binding the
module created above with the program using opt-14(CRTPGM).

Only then you can execute/run the program-object, which has
the behavior defined in the above created procedure.

But as such both procedures and modules are non-runnable
piece of code.(& ofcourse u have a object-type for
Module(*MOD), whereas there's no even object for procedure.

Is This Answer Correct ?    10 Yes 6 No

what is the difference between the procedure and module in ILERPG?..

Answer / lama

Module is a object ( output of compiler) which is non runable.

Procedure is a set of language statements which perform
certain action and return to the calling program . we
genrally store procedure into copybook programs.

Is This Answer Correct ?    8 Yes 9 No

Post New Answer

More RPG400 Interview Questions

1..Write an sql query to find the employee name who is having 2 phone numebr? 2.Write an sql query to the the second highest salary of the employee?

4 Answers  


Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?

4 Answers   IBM,


Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

1 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


what is kids-rpg?

0 Answers   IBM,






how do I declare a minor?

0 Answers   IBM,


A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?

2 Answers   IBM,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)

2 Answers   CTS,


Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?

6 Answers  


Categories