![]() PIC |
![]() DEVELOPER |
![]() |
Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > PIC
|
|
Purpose |
PIC converts data from numeric or alphanumeric to alphanumeric, with editing. |
Syntax |
variable = PIC (operand,mask) |
Operation |
operand is any valid alphanumeric or numeric constant, variable, or expression. |
Remarks |
Numeric editing is done in two steps. The numeric value is moved to an area containing the picture mask. Decimal alignment, rounding (based on the number of decimal positions contained in the edit picture mask), and the editing process are performed. The edited data is moved, left justified, to the resultant value. |
Example |
Assume #A = 100 , #B = 897.651, #C = 876.00-, #D = 12345678, $T = ‘237139’ EDITED is an alphanumeric file variable with a maximum length of 7 &$SPEC = ‘$$$$9.99’. $T = PIC(#C,123) is invalid because the edit picture mask is defined as a numeric. |
Topic ID: 520100