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 program status data structure?
What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'
1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
What is the difference Return and InLr?
Can AnyOne tell me how to read join logical file in rpg from starting to end?
steps involved in debugging and types of debugging modes?
Can we have a Physical file without any member ? Please let me know
How can we call CL program to RPG? How many number of parameter we can pass
what is the procedure and explain about real time scenario.
0 Answers Adhoc Technologies, Hanuman Automation, HSBC, IBM,
In how many ways a session/device error occurs,,, and what is the remedy for it?
can anybody help me that what is the procedure of debugging the service program?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????