Writing a setup program
There are many considerations in designing set up programs, so there is no single recommended way of writing them. However, there are certain functions that your setup program must perform.
About this task
- An Assembler language sample setup program with filename DFH0AZXS
- A COBOL sample setup program with filename DFH0VZXS
- A C sample setup program with filename DFH0CZXS.
These programs install resources to make FEPI function with the other sample programs. They show you one way of writing a setup program.
Your setup program must:
Procedure
What to do next
By default, FEPI resources are available for use as soon as they are installed or associated with a pool. For control, performance, or other reasons, you might want to override this; if so, you must provide a further program (or operations procedure) to bring the resources into service when you require them.
Many of the FEPI commands used by your setup program can use lists; using lists helps to improve performance. If some items in a list fail, errors (both programming errors and resource problems) are reported to your monitoring program, not to the setup program. If you want to track the errors in the setup program itself, without using the monitoring program, restrict your lists to a single item. Errors are then reported on the command itself.