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 |
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?
What is I90(Insure 90)?
if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?
parameters cannot be passed in which one??
One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?
is this a rpg channel?
Need a sql query: retrive all duplicate records in table
How can you determine the number of characters in a variable?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.