Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
answer = first-digits * 10; // get first 7 digits
// shift left one position
switch (last-char){
case '{': // zero
case '}': // negative zero?
break;
case 'A': // positive numbers
case 'B':
.
.
.
case 'I': answer += last-char - 'A' + 1;
break;
// all negative numbers
default: answer = -answer - last-char + 'J' - 1;
}
answer /= 100; // account for two decimal places
[\code]
Regards.
Glenn
data division.
...
working-storage section.
...
01 numeric-intermediate-step pic x(18).
01 numeric-intermedite-edit
redefines numeric-intermediate-step
pic Z(18).
UNSTRING SEQ-FILE-REC
DELIMITED BY ","
INTO
IDX-FILE-KEY
...
..
numeric-intermediate-step
..
..
END-UNSTRING.
MOVE numeric-intermedite-edit TO IDX-FILE-NBR-FIELD.