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 is flat file?
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)
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
RPG/400 faqs?
How we will read call stack?
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
how to run only 10 modules of existing N modules in service program in RPGILE ?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is use of IMPORT and EXPORT in RPGLE ? What is activation Group ? What is Service Program ???? How to call another program in RPGLE ?
How can a screen field that has changed since the last output operation be detected?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
what is the equivalent keyword for CHAIN opcode ??