Question: 6-After compile and execute what the code below produce for values WS-NUMI, WS-NUM2, WS-NUM3 and WS-NUM4. DATA DIVISION WORKING-STORAGE SECTION 01 WS-NUMI PIC 9(9). 01


6-After compile and execute what the code below produce for values WS-NUMI, WS-NUM2, WS-NUM3 and WS-NUM4. DATA DIVISION WORKING-STORAGE SECTION 01 WS-NUMI PIC 9(9). 01 WS-NUM2 PIC 9(9). 01 WS-NUMB PIC 95) 01 WS-NUM4 PIC 9(6). PROCEDURE DIVISION. A000-FIRST-PARA MOVE 123456789 TO WS-NUM1. MOVE WS-NUM1 TO WS-NUM2 WS-NUM3 MOVE WS-NUMI(3:6) TO WS-NUM4 STOP RUN 7-Show the result produced after the value in Sending item is moved to the Receiving item Item Picture PIC 999V99 PIC 999V99 Receiving Item Picture PIC 999.99 Result Data 12345 02345 PIC 9(4) PIC 9(6 2456 120183 PIC 999.99 PIC 999999 8- What is the output of following program? IDENTIFICATION DIVISION PROGRAM-ID. HELLO DATA DIVISION WORKING-STORAGE SECTION 01 WS-NUM1 PIC 9(9). 01 WS-NUM2 PIC 9(9). PROCEDURE DIVISION. A000-FIRST-PARA. MOVE 25 TO WS-NUMl MOVE 15 TO WS-NUM IF WS-NUM1> WS-NUM2 THEN DISPLAY 'IN LOOP 1 IF BLOCK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
