What would be the reason to fill a numeric variable by ADD'ing 0 instead of MOVE?
05 CLS-A PIC 9(5) COMP.
05 CLS-B PIC X(2).
05 DSP-A PIC 9(5).
05 DSP-B PIC X(2).
ADD CLS-A, 0 GIVING DSP-A.
MOVE CLS-B TO DSP-B.
Where the DSP-A & B variables are members of a type passed to the COBOL DLL from a VB app by Ref (the VB types are all fixed length strings) and the CLS variables are FD'd for file access.
Sorry if this is extremely simple. The COBOL programmers I've asked are not sure either.
05 CLS-A PIC 9(5) COMP.
05 CLS-B PIC X(2).
05 DSP-A PIC 9(5).
05 DSP-B PIC X(2).
ADD CLS-A, 0 GIVING DSP-A.
MOVE CLS-B TO DSP-B.
Where the DSP-A & B variables are members of a type passed to the COBOL DLL from a VB app by Ref (the VB types are all fixed length strings) and the CLS variables are FD'd for file access.
Sorry if this is extremely simple. The COBOL programmers I've asked are not sure either.