Previous Topic: Special Character Handling ConsiderationsNext Topic: Non-QUERY SOF Request Types


Device ID String Composition

A device ID is a unique system generated identifier for each device in a system. The device ID consists of the concatenation of the following six fields and may contain imbedded blanks:

Device type

Contains six characters (Example: 009020)

Device model number

Contains three characters (Example: T01)

Device manufacturer

Contains three characters (Example: IBM)

Device manufacturer plant code

Contains two characters (Example: 02)

Device serial number

Contains 12 characters (Example: 000012345678)

Device tag

Contains a binary half-word integer (Example: 001F)

The final device ID is the concatenation all components. The fields follow each other with no separating blanks, although any individual component may contain imbedded blanks.

Example: Sample device ID

type|model|manufacturer|plant|serial|tag

CHPID(002094S28IBM020000000508512080)
Device ID input

ADDRESS SOF converts the tag portion of device ID operands from 4-byte printable hex back to 2-byte binary before sending them as input operands to the SOF commands.

Device ID output

The Device ID field is subject to the blank translation as described above. In addition, the Device ID tag field is also converted from a 2-byte hex value to its 4-byte decimal character equivalent. Individual components of the Device ID can be broken down using positional parsing as shown in the following example.

Example: Sample device ID parse:

Parse Var devid devtype  7 devmodel  10 devmfg  13 devplant  15 devserial 
27 devtag
Say 'Device Plant is' Translate(devplant,'  ','FE'x)