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?
Answers were Sorted based on User's Feedback
Answer / ps
There can be many apprach . It's depend upon user requirement
Those containing only a main procedure and no sub procedures
Those containing a main procedure and one or more sub procedures
Those with no main procedure but with one or more sub
procedures.
If Your question is can we have many independent procedure
in one module.then answer is YES.
No we can not give it different name . If you do not have
MAIN procudure then you have to specify NO main at H spec
other wise you will not able to compile.
About call i believe In your module if you have specified
EXPORT on prototype definition of procedure then you can
call it outside , You gonna call procedure not complete module.
PS i m new to ILE so could be wrong in understanding your
question.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / deepak singh
A module may consist of:
1. One main procedure and no sub-procedures.
2. One main procedure and one or more sub-procedures.
3. No main procedure and one or more sub-procedures.
The module name can be different from its sub-procedures.
A module cannot be called on its own. You can call a sub-procedure within a module.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / nd
Use EXTPROC on the prototype defination.
The EXTPROC keyword indicates the external name of the
procedure whose prototype is being defined. The name can be
a character constant or a procedure pointer. When EXTPROC
is specified, a bound call will be done.
D SQLEnv PR EXTPROC(’SQLAllocEnv’)
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the difference Return and InLr?
Can we create 300 logical files based on a single physical file using the CRTLF command only once?.
How to find d key field of a pf that doesn’t have source physical file?
use of PUTOVR,OVRDTA,KEEP keywords?
What would be the effect on the field where reverse image, underline and high intensity?
How to select highest score of each subject or how to select highest income of every month?
can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?
2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed
difference between 1:%found and %equal built function in detail with example .
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
we are sending data of physical file to screen design and it is showing no record why?
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?