COBOL move Comp-3 to Numeric

High Paying+QlikView+Jobs
High paying+QlikView+Jobs

Let us take an example and I will explain how to write code for this.

01 Var-1 s9(3) comp-3 value 123.

01 Var-2 s9(3) value 0.

Instead of MOVE statement use ‘ADD’

ADD VAR-1 to VAR-2

Now, you will get data in numeric format i.e into VAR-2.


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.