You can call your compiled programs from any command entry line by using the i OS CALL command to invoke your program. From within your model, you can display a command entry line by pressing F9 from the Display Services menu.
Note: If you do not know the name of your program, you can obtain it from the Edit Function Details panel or the Display all functions option on the Display Services Menu.
When you call your program you need to specify a dummy *Return code parameter. All CA 2E programs require a dummy parameter to be passed to the program (‘ ‘ or ‘’). This return code can be used to communicate between programs in more complex applications.
Enter the program name and return code, and press Enter. The following example calls the program MYAEEFR.
MAIN 2E Main Menu
Level . : 1
System: 2EDV1
Select one of the following:
Design Model 1. Display Designer (*DSNR) menu
2. Display Programmer (*PGMR) menu
3. Display User (*USER) menu
8. Work with Model Object Lists
9. Change to work with another model
Commands 50. 2E commands in alphabetical order
51. Commands to set up or alter a model
52. Commands to copy a model
53. Commands to create an application
54. Commands to document a model
More. . .
Selection or command
===> call myaeefr **__________________________________________________________
_____________________________________________________________________________
F3=Exit F6=Messages F8=Rev retrieve F9=Retrieve F10=Cmd Entry F14=Sbm jobs
Note: To test complex programs, you can use the CA 2E Call a Program (Y2CALL) command. This command loads your model and determines the parameters required by an external function directly from details contained in the model.
You can provide values for all input-capable fields and you can reuse these values for subsequent calls. You can also retrieve and display output parameters when the called program ends.
|
Copyright © 2014 CA.
All rights reserved.
|
|