The Execute User Program (EXCUSRPGM) function allows you to specify the connection to a user-written high-level language program that is called by CA 2E functions. You can specify parameters on the call to this function. You can also submit an EXCUSRPGM function for batch processing from within an action diagram.
You can attach the EXCUSRPGM function to any access path or you can specify *NONE for the access path. You should normally attach the EXCUSRPGM function to a file containing some or all of the function parameters.
You cannot specify Neither (N) type parameter for this function type; however, you may specify Varying (VRY) role parameters. There is no *Return Code parameter for this function type unless you explicitly define it.
There is no action diagram or device design associated with this function type.
When you create an EXCUSRPGM function, CA 2E assigns a source member name for the program. You can override this to be the name of the HLL program that you want to call. You need to do this if the program already exists and you are now defining it to the model.
You should declare all the parameters required by your EXCUSRPGM function. Parameters can be declared in the normal fashion using the Edit Function Parameters panel. However, you should first determine the domain of the parameter fields in your user-written program to ensure that they correspond to the parameters of your calling function.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |