The CRTPTYPMBR (Create Prototype Member) Command will analyze a source member and generate the Prototypes for a /copy member. The /copy can pre-exist or the command can create a new one.
Below is a sample of the command screen:
(click on image to view full size)
| Parameter Name | Description |
| Source File | This is the source file for the source member to analyze (ex. QRPGLESRC, QSOURCE, etc.) |
| Source Library | The library in which the source file is located. |
| Source Member | This is the source member you are analyzing in the previously listed File/Library. This will provide the source code for the eventual /copy member. |
| Prototype File | This is the file name of the prototype /copy member to update or create. (ex. QRPGLESRC, QSOURCE, etc.) |
| Prototype Library | The library of the Prototype File. |
| Prototype Member | The source member name of the /copy member. |
| Append To Prototype Member | Indicates whether or not the exported prototypes should be appended to an existing /copy member. A value of "*NO" (the default) will create a new member for the prototypes, and if "*YES" the prototypes will be added to the /copy member referenced in the Prototype parameters above. |
The command will read through a source member and generate a matching prototype for each exported procedure.