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

Answers were Sorted based on User's Feedback



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

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

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

Answer / bhupendra tomar

WE COMPILE A MODULE BUT WE RUN A PROCEDURE.

Is This Answer Correct ?    14 Yes 5 No

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

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

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

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

Post New Answer

More RPG400 Interview Questions

In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?

1 Answers  


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,


How do you do indexing in a physical file?

2 Answers  


What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

7 Answers   HSBC, Systime,


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  






How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?

4 Answers   IBM,


in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm

2 Answers  


1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?

4 Answers   Virtusa,


1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD

4 Answers   Manhattan,


program to find the number of objects used in a given program through a display.

2 Answers   IBM,


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


what was the robotech rpg?

0 Answers   IBM,


Categories