![]() |
Overview
CFS offers the user the possibility of executing a sequence of commands and/or selection actions in a procedure mode. The commands to be executed could be contained in a
- BS2000 DO or Enter Procedure
- CFS Command Procedure
- CFS Startup File
The CFS Procedure language described in this chapter is equally valid for BS2000 DO or Enter procedures, CFS command procedures (DO command), or for CFS Startup files.
In the CFS procedure mode, the necessary input (selection conditions, Variable Actions, commands, Connection input) will be expected from SYSDTA. If CFS input is to be accepted from SYSDTA, task switch 1 should be set to ON.
CFS can be used in procedures in two different ways:
a) Basic mode: In this mode, only input for the first CFS screen will be accepted. This input includes: selection conditions, Variable Actions and documentation file specifications.
The procedure will proceed as follows: After the relevant files or library elements have been selected on the basis of a selection record, a Variable Action (if defined in the procedure by a ON&... record) will immediately be executed. A documentation file will be created, if specified.
The entire CFS program section controlling the execution of commands (second CFS screen) is skipped in the basic procedure mode. This mode allows relatively simple procedures to be created in order to select certain data objects and to execute a Variable Action on all these files.
The basic CFS procedure mode is invoked if task switch 11 is set. In addition, all selection records must be headed *001. For further information, see page 19-.
Basic mode is only possible if called from a BS2000 DO or Enter procedure. It is not applicable in CFS command procedures.
b) Enhanced Procedure Mode: This mode simulates the full screen dialog with all input and prompts.
In the enhanced procedure mode, files can be marked with individual Action Codes, and then subsequently processed (e.g. with Modify). Connections can be opened, and various input passed to these Connections. The latter is possible even if CFS is running as an Enter job.
The only drawback to the enhanced procedure mode is that all program input required must be predefined very accurately in the procedure file.
When running in the enhanced procedure mode, task switch 11 must not be set. The file selection statements must begin with *002. Following entries for the CFS command field must not have the *002 header.