KB Article #179271
Is it possible to modify the default parameters values of a CFT macro?
Problem
Is it possible to modify the default values for parameters of a CFT macro?
Example:
Create a new CFTTCP macro with the source below:
CFTTCP ID = TEST,
CNXIN = 02 ,
CNXOUT = 02 ,
CNXINOUT = 04 ,
HOST = 'MYHOST',
MODE = REPLACE
After the creation, check the object that was created with command "cftutil cftext ..." :
CFTTCP ID = 'TEST',
RETRYW = '7',
RETRYM = '12',
RETRYN = '6',
IMAXTIME = '23595999',
IMINTIME = '00000000',
OMAXTIME = '23595999',
OMINTIME = '00000000',
CNXOUT = '2',
CNXIN = '2',
CNXINOUT = '4',
CLASS = '1',
HOST = ( 'MYHOST'),
VERIFY = '0',
/* COMMENT = '',*/
ORIGIN = 'CFTUTIL',
MODE = 'REPLACE'
A lot of parameters which were not specified are declared with default values.
For example , see parameters :
RETRYW = '7',
RETRYM = '12',
RETRYN = '6',
Where those default values are coming from ?
Can new default values be defined somewhere?
Resolution
Default values are assigned to non explictly defined parameters and cannot be changed from a generic template.
In the example above, for the RETRYW parameters, you can see default value in the documentation
:
CFTTCP
[RETRYW = {7 | N }]
The time interval (expressed in minutes) between reconnection attempts.
7 (default value)
any other value from 0 to 32767
Note: Parameters of a CFT macro are always all presents but not mandatory when compiling a new macro, it is where default values are used.