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 |
please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code
Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
Difference between RESET and CLEAR
How to sort an array in descending in RPG
I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?
5 Answers CitiGroup, Symphony,
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.
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
how do I declare a minor?
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?
if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.