what is the difference between the procedure and module in
ILERPG?
Answers were Sorted based on User's Feedback
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 |
Answer / bhupendra tomar
WE COMPILE A MODULE BUT WE RUN A PROCEDURE.
| Is This Answer Correct ? | 14 Yes | 5 No |
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 |
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 |
What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?
The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?
How to declare the dynamic(run time) array in rpgle? can you please give example
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,
How to create a key field for a logical file inside RPG?
How would display prime numbers using CL program?
can you debug ile rpg program using isdb?
there is any limit to display the members in rpg400?
how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .
What are the necessary keywords required to code a message subfile?
Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?
I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....