ILE programming

50 pts.
Tags:
ILE
RPG
RPG ILE
Hi I am looking for implimentation of IMPORT & Export use in ile programming with code.

Answer Wiki

Thanks. We'll let you know when a new response is added.

The IMPORT and EXPORT keywords let you share data among the procedures in
a program without explicitly passing the data as parameters — in other words,
they provide a “hidden interface” between procedures.

PGM – EXP_IMP1

d Var1 S 5p 0 Export Inz(3)

c Var1 dsply r 1

c callb ‘EXP_IMP1′

c Var1 dsply r

c return

PGM – EXP_IMP1

d Var1 S 5p 0 Import

c Var1 dsply r 1

c z-add 77 Var1

c Var1 dsply r

c return

THEN USE
CRTRPGMOD OR PDM OPTION 15 TO CREATE MODULE
THEN
CRTPGM PGM(LIB/PGM_NAME) MODULE() ()

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following