Consider the following code snippet.
 **************************************************
      EXEC CICS READ
                  FILE (‘FILE1’)
                  INTO (WS-X)
                  LENGTH (WS-Y)
                  RIDFLD (WS-Z)
                  KEYLENGTH (WS-W)
      END-EXEC.
 **************************************************
 Filename is FILE1.
 RECORDSIZE is 80, KEYLENGTH is 1 and the record to be read has a key value of '6'.
 What should be moved to the variables WS-X, WS-Y, WS-Z and WS-W before the READ is performed?

 MOVE 80 TO WS-X
 MOVE 1 TO WS-W
 MOVE 6 TO WS-Y
 MOVE ZEROS TO WS-Z
 MOVE 80 TO WS-Y
 MOVE 1 TO WS-Z
 MOVE 6 TO WS-W
 MOVE LOW-VALUES TO WS-Z
 MOVE 80 TO WS-Y
 MOVE 1 TO WS-W
 MOVE 6 TO WS-Z
 MOVE LOW-VALUES TO WS-X
 MOVE 80 TO WS-W
Verified Answer
Correct Option - c

To get all Infosys Certified Mainframe CICS Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram