Depending on the context, the value variable can have different meanings as described in the following table:
Value Variable
Description
Example
Global Inbound and Global Outbound Post Process Scripts
Refers to the entire message string.
Note that value is not defined in the Global Outbound Preprocess script.
Removing illegal carriage return characters from messages (carriage return is reserved for the segment delimiter).
Example Script:
value = strip_chars('\x0A', value)
Segment Inbound/Outbound Scripts
Refers to the first subfield of the field whose Inbound/Outbound script you are editing (is always a string).
Inserting underscores between every three digits in a social security number field.
Example Script:
value = value[0:3]+ '_' +value[3:6]+ '_' +value[6:9]
Table Inbound/Outbound Scripts
Refers to the data in the column whose Inbound/Outbound script you are editing. The data type depends on the column type (string, integer, double or date time).
Adding 1000 to the current value assuming an integer type table column.
Example Script:
value = value + 1000
The value variable is not defined in Global Outbound Preprocess Scripts.