SCS input

SCS printers have limited input capability, in the form of program attention keys.

However, these keys are not like the attention keys that are described in Input from a 3270 terminal . Instead, they transmit an unformatted data stream consisting of the characters 'APAK nn ', where nn is the 2-digit PA key number; 'APAK 01' for PA key 1, for example.

You can capture such input by defining a transaction named 'APAK' (APAK is the transaction identifier, not the TASKREQ attribute value, because SCS inputs do not look like other PA key inputs.) A program invoked by this transaction can determine which PA key was pressed by issuing a RECEIVE and numeric positions of the input.