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
How to select highest score of each subject or how to select highest income of every month?
How to write record if no field or the field are different in physical file in rpgle ?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
what is the necessary keyword needed to scroll subfile records?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
How to call one program from another program in RPG? please help me with the code
What is file identifier where we can use?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how does the rpg element work?
How can we override a file during runtime in rpg?
How Chain operation copies the record's data to the input buffer for the program?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?