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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by an input subfile, what are the keywords required?

777


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

694


What is the difference between copybooks and subprocedures in as400?

814


what is an online rpg?

733


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1567






How many program bind in one module....

2128


How can we override a file during runtime in rpg?

690


what is data area and how it is used in rpg program ?

758


how do I play {insert rpg system here}?

589


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2521


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

1736


How to call one program from another program in RPG? please help me with the code

1265


How would display prime numbers using CL program?

5682


how do you use commitment control in rpg?

760


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

519