Why can't we move Alphanumeric ( PIC X ) data to COMP-3 variables directly without using Display 0r Zoned numeric variables intermediately.....
I want to know how the movement takes place in the variables internally...
This is incorrect. Data in files and in programs is almost never stored in ascii on the mainframe.in alphanum data is stored in ascii form
How will data movement take place for these 2 cases internally ??
No, this is not correct. You should not try to force alpha values into a packed-decimal (comp-3) field.i have code is this correct and how to move alphanueric to comp-3
01 WS-COMP3 PIC 9(6)V99 COMP-3.
MOVE 'TESTING' TO WS-COMP3.