JebusRocks
Programmer
Hello all
I am new to cobol programming(some schooling but little in the way of real world experience) I am looking at a piece of code and need it clarified if you could.
the code is
IF X
MOVE A (1:20) TO B
MOVE A (21:20) TO D
ELSE
DO SOMETHING
END IF
I understand the logic but am wondering about the
(1:20) and (21:20) statements
does
(1:20) mean move 20 characters of A to B starting in position 1
and
(21:20)mean move 20 characters to of A to D starting in position 21
?
Thanks
I am new to cobol programming(some schooling but little in the way of real world experience) I am looking at a piece of code and need it clarified if you could.
the code is
IF X
MOVE A (1:20) TO B
MOVE A (21:20) TO D
ELSE
DO SOMETHING
END IF
I understand the logic but am wondering about the
(1:20) and (21:20) statements
does
(1:20) mean move 20 characters of A to B starting in position 1
and
(21:20)mean move 20 characters to of A to D starting in position 21
?
Thanks