hii sir can u plz send me occurs clause and synchronisation class programs.plzzz
@jagannathrath19144 жыл бұрын
Hi, I have a query and need your help. 05 WS-A PICX(05). 05 WS-B REDEFINES WS-A PIC 9(05). MOVE 'ABCDE' TO WS-A. DISPLAY WS-A ':' WS-B. what will be the output? Will the output be same for both variables since they are referring to same memory location. Or it will give error for moving alphanumeric data to numeric field?
@iiwowiis53544 жыл бұрын
Output will be : ABCDE:A CDE here, B indicate a single space. you will get same answer for both the variable. Try with other text. This kind of redefines create an issue when you move the data into a file and handle in other step or program. So, we have to be very cautious in handling the data type. MOVE 'MNOP' TO WS-A. DISPLAY WS-A ':' WS-B. output: MNOP :MNOP