Use this file- or record-level keyword to specify that the record format name is to be sent to the remote program when your program issues an output operation.
This keyword has no parameters.
The FMTNAME keyword is ignored at run time when EOS, RSPCONFIRM, or RQSWRT is in effect. These keywords must have option indicators when they apply to a record for which the FMTNAME keyword applies. If an EOS, RSPCONFIRM, or RQSWRT keyword with no option indicator applies to a record for which FMTNAME applies, an error message is issued and the FMTNAME keyword is ignored at creation time.
You cannot specify FMTNAME with the TIMER keyword.
Option indicators are valid for this keyword.
The following example shows how to specify the FMTNAME keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RCD1 A 01 FMTNAME A FIELD1 10A B A
If indicator 01 is on and the program does a write operation, the record format name will be sent as an Advanced Program-to-Program Communication (APPC) map name to the remote system.