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

Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

0 Answers  


1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400

10 Answers   IBM, Tech Mahindra,


How do you find whether a record is locked or not?

2 Answers  


What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,






1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF

5 Answers  


this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002

1 Answers  


how to change the length of the field in a physicalfile?

12 Answers  


two types of read performed in dataqueue?????

4 Answers   CTS,


which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


How many program bind in one module....

0 Answers  


How to search particular records from the database file in rpg?

2 Answers  


Categories