What is use of IMPORT and EXPORT in RPGLE ? What is
activation Group ? What is Service Program ???? How to
call another program in RPGLE ?



What is use of IMPORT and EXPORT in RPGLE ? What is activation Group ? What is Service Program ???..

Answer / raju challa

A) EXPORT & IMPORT

Export: indicates that the variable has been defined (stored) in this module and will be used by some other module which is importing this variable using Import keyword.

Import: indicates that the variable has been defined (stored) in some other module and will be used here.





b) In calling Programme..

c call pgmname plist
*
c name1 plist
c parm fld1 5a
c parm fld2 5s 0




In called programme.


c *entry plist
c parm a 5a
c parm b 5s 0

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

What are different ways to pass data between programs and which one is the efficient way?

5 Answers  


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks

5 Answers   CTS,


I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

5 Answers   CitiGroup, Symphony,


How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

1 Answers  


can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


parameters cannot be passed in which one??

2 Answers   CTS,


how to display all the members records in a physical file without using ovrdbf?

9 Answers  


Can someone tell me tell me what is meant by message wait...?

1 Answers  


Categories