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 |
Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?
How do you find whether a record is locked or not?
what is batch debug in as400?
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG
What is the OPEN and CLOSE accesspath?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
i'm working on progA , in that program i want to see the userids of the users who work on this program?
What are the necessary keywords required to code a message subfile?
As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?
How can i check the object existance in RPG program without using QCMDEXC command.