The following table shows which variables can be used for which system.
Variable | Meaning | BS2000 | Unix | Windows | z/OS |
%PARTNER | Partner name (long form) | X | X | X | X |
%PARTNERAT | Partner name | X | X | X | X |
%FILENAME | File name | X | X | X | X |
%ELEMNAME | Element name | X | |||
%ELEMVERS | Element version | X | |||
%ELEMTYP | Element type | X | |||
%RESULT | Request result | X | X | X | X |
%JOBCLASS | Job class | X |
In the case of %PARTNER and %PARTNERAT, the partner name found in the partner list is used if it is present in the partner list. If it is not entered in the partner list (dynamic partner) then the partner address is used. In this case, %PARTNER and %PARTNERAT have different effects:
In the case of %PARTNER, all the address components are used, i.e. including protocol prefix, port number and selectors if appropriate.
In the case of %PARTNERAT, only the host address component is used, see section“Specifying partner addresses”. In addition, all characters apart from letters, digits or periods are replaced by ’@’.
If one of the above-named symbolic identifiers remains in this form, that is without replacement, then the initial percentage sign must be doubled, as in %%FILENAME.
Additional variables on z/OS
The following variables can be used:
| Like %FILENAME. |
| Like FILN, except that quotes are automatically doubled during the |
| Symbolic name of the partner system. A maximum of 8 characters. User ID from the PROCESSING-ADMISSION for the relevant system, if |
| Accounting information from the PROCESSING-ADMISSION for the |
| Like ACCN, except that quotes are automatically doubled during the |
| Password from the PROCESSING-ADMISSION for the relevant system, if |
| Owner of the FT job, i.e. the user ID under which the transfer job was |
| Programmer's name, as specified with the keyword PGRN= as a |
| Like PGRN, except that quotes are automatically doubled during the |
| FT job identifier in the relevant system. A maximum of 10 characters (value |
For reasons of compatibility with previous versions, the character "&" should be used to make sure that previous versions also handle the variables correctly.
The names of these variables should have as many trailing "#" fill characters as are necessary for a field to be set to its maximum length (including the "&" character, e.g. &TRID#####). When replacing the variables by the current values, openFT does not exceed the field length predefined by the name of the symbolic parameter including the trailing "#" fill characters; if necessary the current values are truncated. On the other hand, where the current values are shorter than this field length, openFT removes superfluous blanks.
For the FILX, ACCX and PGRX parameters, in which quotes are automatically doubled during the replacement, the number of trailing characters must be increased by the number of quotes possibly contained in the current value (i.e. 2 additional trailing characters for FILX and ACCX, whose current value can be enclosed in quotes, but which cannot themselves contain quotes, and at least 3 additional trailing characters for PGRX for the external quotes and at least one quote contained in the name).