Extended CommandsChapter —7
334 TE 2000
5250 Terminal Emulation Programmer’s Guide
Return Codes for Magnetic Card Reader
Thereturncodeisthestatussenttothehostcomputer;thecodeindicates
if the extended command was successful. The terminal returns data and
the extended command’s status to the host computer in the
\\X<CR>
for-
mat. X is the return code listed in the following chart.
Code Description
0 Good status, transaction complete.
1 Not enough memory for card data buffer.
6 No 3270 or 5250 input field available to hold the magne tic card data.
9 Incorrect se tting for maximum characters to re ce ive.
C Incorrect s etting for timeout value.
F Timeou t error, no data.
K Key presse d to abort card read.
P Communication with th e Magnetic Card Reader failed, che ck cabling, re ader
power, no data.
T OK, the data is re turned, but is truncated by the less e r of the input field size
(for 3270 and 5250) or “ddd.”
#M will return the data in the following format:
”{T1:” <Track 1> ”|T2:” <Track 2> ”|T3:” <Track 3> ”}”
where <Track n> is:
S 0to81alphanumericdatacharactersforTrack1.
S 0to42numericdatadigitsforTrack2.
S 0 to 109 alphanumeric or numeric data characters (depending on ISO or
AAMVA conformance) for Track 3.
Note: If the track data is “B,” then the track was not read. An “N” means
the track is not on the magnetic card.
The maximum possible characters i s 245.
Magnetic Card Reader CAB File
For the Magnetic Card Reader to work, the MAGCARD.CAB file must
be installed (which installs and registers the MAGCARD.DLL file).
Contact your Intermec representative to get this file, then install this file in
your 700 Series Computer. The TE 2000 application only looks for the
MAGCARD.DLL file when it gets a Magnetic Card Reader (#M)
extended command from the host.