how do “call” in RPGLE

5 pts.
Tags:
CLP
RPGLE
how do "call" in RPGLE if program to call is clp with parameter

Answer Wiki

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

This is a pretty basic concept:

C Call CLProgram
C Parm Parm1
C Parm Parm2
C Parm Parm3
———————————————————————————————
~ OR ~
———————————————————————————————

D cvtDateFmt PR EXTPGM(‘CVTDATESCL’)
D FromDate 2P 0
D FromFmt 2P 0
D ToDate 2A
D ToFmt 2A

C If FromDate <> *Zeros
C callp cvtDateFmt(@FromDate:’YYYYMMDD':@ToDate:’YYYYMM’)
C endif

=========================================================

In general, you CALL a CL program the same way you CALL a RPG program. Or a C program. Or a COBOL program. Or a MI program. Program CALLs are the same regardless of language.

Why would you think they weren’t? Is there a problem?

Tom

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