Extended CommandsChapter —7
318 TE 2000
5250 Terminal Emulation Programmer’s Guide
Scan (#S)
The Scan extended command allows host systems to have the same capa-
bilities as terminals using the Native data stream to set bar code parameters
and scan.
By inserting characters “#S” in the display buf f e r at Line 1, C olumns 2
and 3, the host computer tells the terminal to expect a Bar Code Scanner
extended command. Appropriate descriptive characteristics should follow
the“#S”characters.Theterminalreturnsacodetoindicateifthecom-
mand was successful. Then it simulates the [Enter] key to return a value to
the host computer. Note that “b
”indicatesa1-bytespace.
Due to possible system fragmentation of a data stream, the “#” in Line 1,
Column 2, should be the last character placed on the screen. This will en-
sure that all data is present before the extended command is parsed (re-
moved).
Scan Bar Code Parameters — Line 1, Columns 2–3
Column Description Character
2 Extended command #
3 Scan command S