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:
Contains six characters (Example: 009020)
Contains three characters (Example: T01)
Contains three characters (Example: IBM)
Contains two characters (Example: 02)
Contains 12 characters (Example: 000012345678)
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)
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.
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)
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|