The $FTSDEMO procedure generates a transmission definition dynamically, based partly on user input and partly on prescribed defaults. The new definition is added specifying conditional definition deletion and a TRANSMIT command issued to request the transmission. If the transmission completes successfully, the definition is deleted automatically; otherwise, it remains and may be amended and requested again in the usual manner. Alternatively, procedure $FTSDEMO may be modified so that definition deletion occurs regardless of the transmission’s success (by setting &FTSDELDF to Y). In this case, the same steps used to originally define the request may be required to recover from failed transmissions.
These techniques can be utilized in many ways. The information necessary to create a transmission definition can be obtained from a variety of sources, such as a UDB, from full-screen panels, or from parameters passed to an NCL procedure. For example, an NCL procedure based on $FTSDEMO can be passed only the names of the input and output data sets to set defaults for all other options before requesting the transmission.
Such a procedure can also be invoked from a batch job through UTIL0001. The step of the batch job that executes UTIL0001 could submit the following command:
F NM,EXEC FTSSUB INPUT.DATASET OUTPUT.DATASET
This has the effect of executing the NCL procedure FTSSUB under control of the SYSOPER user ID, passing it the names of the input and output data sets. This procedure then defines a transmission and requests it.
| Copyright © 2010 CA. All rights reserved. |
|