1. Start the « EASYCOM Stored Proc Configuration » , in the program group « ACE400 ».
2. Create a new procedure.
3. Complete the dialog box with the Procedure description:
• Procedure Name: This name will be the only one used on the client side. Your application will open and call this procedure name.
• Description: Enter any text to describe your procedure.
• AS/400 Program Name: The complete AS/400 qualified program name. LIBRARY/PROGRAM
• Program/DataQueue : Leave this Combo Box in Program state.
4. Describe the parameters expected by your program.
Because on AS/400, a parameter can be a Data Structure, you need to describe each Field (item of the Data Structure), and to put the type of the field (parameter or first field of a Data Structure or not).
You can Add, Delete or Modify field descriptions by clicking the "+", "-" or "M" buttons.
Complete the next Dialog box "Parameter field edition»:
• Field Name: The field to be used.
• Field usage: The field is sent to the program (IN), or it is the return result of the program (OUT) or both. Usually the parameters are IN/OUT.
• This field is a parameter or the first field of a Data Structure: This box must be unchecked only if the field is in the second or greater position inside a parameter that is a Data Structure.
• AS/400 format: Describe exactly which data format your program expects: Data Type, Number of characters or digits for a decimal value, and the number of decimals.
• PC format: Describe how you want the data to be converted by Easycom.
You can use this process to describe several programs, also you can provide multiple descriptions for the same program, if needed.
See StProc sample provided for a complete example.