I HAVE FOLLOWING DECLARATION.
02. A PIC X(10) VALUE 'XXXXXXXXXX'.
02. B REDEFINES A.
05. C PIC X(3).
05. D PIC X(3).
05. E PIC 9(3).
IN MY PROG, I HAVE
MOVE 1 TO E.
DISPLAY A.
WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
PLEASE EXPLAIN THE ANSWER. THANKS.

Answer Posted / paray2x

1. you will get data exception as you cannot move 'XXX' to
a 9(3) field.

2. Since you have not initialised C,D it will be '......001'

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


What is the difference between PIC 9.99 and PIC9v99?

781


What is rmode(any) ?

686


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588






What type of SDLC u followed? Why?

1520


What are the pertinent COBOL commands?

2623


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


How you can read the file from bottom?

660


What is the difference between structured cobol programming and object alternativelyiented cobol?

754


What is the compute verb? How is it used?

659


What is the utilization of copybook in cobol?

657


What is the default value(s) for an initialize and what keyword allows for an override of the default?

695


What is static and dynamic call in cobol?

594


Write a program that uses move corresponding.

673