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 |
How would display prime numbers using CL program?
How do you know if a record exists without doing a READ and CHAIN?
what is the necessary command needed before OPNQRYF and why?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?
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
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
how do u track msg in cl pgm???
can anybody help me that what is the procedure of debugging the service program?
what is the difference between the procedure and module in ILERPG?
There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented