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.
01 work.
03 w-amount pic S9(7)V9(7).
*> factor 10
03 w-amount-div0010 redefines
w-amount pic S9(6)V9(8).
03 w-amount-mult010 redefines
w-amount pic S9(8)V9(6).
*> factor 100
03 w-amount-div0100 redefines
w-amount pic S9(5)V9(9).
03 w-amount-mult100 redefines
w-amount pic S9(9)V9(5).
03 w-target-amount1 pic S9(8)V9(8).
03 w-target-amount2 pic S9(8)V9(8).
compute w-target-amount1 = w-amount / 10.
compute w-target-amount2 = w-amount * 100.
move w-amount-div0010 to w-target-amount1.
move w-amount-mult100 to w-target-amount2.
01 hey-im-an-array occurs 1000 times indexed by
hey-idx.
03 hey-array-elem.
05 hey-array-field1 pic x(03).
05 hey-array-yes-no-switch pic x(01).
05 hey-array-packed-field pic S9(7) comp-3.
05 hey-array-binary-field pic S9(9) comp-5.
set hey-idx to 1.
perform 1000 times
move space to hey-array-field1 (hey-idx)
move "N" to hey-array-yes-no-switch (hey-idx)
move zero to hey-array-packed-field (hey-idx)
hey-array-binary-field (hey-idx)
set hey-idx up by 1
end-perform.
move space to hey-array-field1 (1).
move "N" to hey-array-yes-no-switch (1).
move zero to hey-array-packed-field (1).
hey-array-binary-field (1).
move ALL hey-array-elem (1) to hey-im-an-array.
Can you supply a link to the documentation of an implementation of this construct?Truusvlugindewind said:Code:move ALL hey-array-elem (1) to hey-im-an-array.
01 hey-im-an-array.
02 occurs 1000 times indexed by
hey-idx.
03 hey-array-elem.
05 hey-array-field1 pic x(03).
05 hey-array-yes-no-switch pic x(01).
05 hey-array-packed-field pic S9(7) comp-3.
05 hey-array-binary-field pic S9(9) comp-5.
01 REDEFINES hey-im-an-array.
03 FIRST-HEY PIC X(13).
03 REST-HEY PIC X(12987).
01 INITIAL-ELEMENT.
05 HEI-array-field1 pic x(03) VALUE SPACE.
05 HEI-array-yes-no-switch pic x(01) VALUE 'N'.
05 HEI-array-packed-field pic S9(7) comp-3 VALUE ZERO.
05 HEI-array-binary-field pic S9(9) comp-5 VALUE ZERO.
MOVE INITIAL-ELEMENT TO FIRST-HEY.
MOVE hey-in-an-array TO REST-HEY.
77 Toggle Pic 9 Value 1.
. . .
Subtract 1 from Toggle
. . .
Subtract 1 from Toggle
. . .
If Toggle = Zero
etc.
01 Group-Item.
05 GI-1 Pic X Value "1"
05 GI-2 Pic X Value "2".
01 AlphaNum-Edited
Pic X/X.
...
Move Group-Item to AlphaNum-edited.