Check the IBM reference book. Gives good examples.
***************
Here's a quick example. Basically, you need to set up a prototype for the *Entry parameters, and refer back to the same program in the prototype. (I can't get this to format correctly, so the column positions may not line up when you view this.)
<pre>
D SomePrototype PR
D 9A
D 10A
D N
* these are the *Entry parameters
D SomePrototype PI
D Parameter1 9A
D Parameter2 10A
D Parameter3 N
Or you can do the procedure section like this, where you can name it anything you want and just reference the program or module name via the EXTPGM keyword.
D Main PR EXTPGM('SOMEPROGRAM')
D 9A
D 10A
D N
* *Entry parameters
D Main PI
D Parameter1 9A
D Parameter2 10A
D Parameter3 N
</pre>
CWC
Last Wiki Answer Submitted: July 31, 2008 2:33 pm by Cwc4,275 pts.
All Answer Wiki Contributors: Cwc4,275 pts. ,
graybeard523,115 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.