RPG free form

5 pts.
Tags:
Free form syntax
RPG ILE
Need to do a straight call, not a callp, is there a way to do this in free form?

Answer Wiki

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

Hello,

Website with how to use the Free Form…

http://search400.techtarget.com/tip/0,289483,sid3_gci1220190,00.html#

*********************
To do a program or procedure call in /Free, you must use a prototyped call. Although this may initially seem like more effort, it’s really pretty straightforward once you understand how to set it up. It has some advantages, and is the modern way of calling a program or procedure.

<pre>CALLP SomeProcedure(Parameter1: Parameter2);</pre>

You can even omit the CALLP operation code, as it isn’t necessary.
<pre>SomeProcedure(Parameter1: Parameter2);</pre>

And it allows you to assign the return value of a procedure to a variable, making for a cleaner syntax:
<pre>SomeVariable = SomeProcedure(Parameter1: Parameter2) ;</pre>

CWC

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