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



Whether a module can consists of many procedures or it can consist of subprocedures having a main ..

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

Whether a module can consists of many procedures or it can consist of subprocedures having a main ..

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

Whether a module can consists of many procedures or it can consist of subprocedures having a main ..

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

Post New Answer

More RPG400 Interview Questions

can anyone say,what is the use of operation extended H/N/P?

2 Answers  


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

0 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


what is the rpg system?

0 Answers   IBM,


WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?

3 Answers  






how many variables can we declare in cl pgm?

13 Answers  


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


what is the difference between SETON RT & RETURN?

5 Answers  


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?

3 Answers  


Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20

5 Answers  


Categories