77 a pic x(4) value '1234' -----> instead of this 'abcd'
77 b pic 9(4) value zeros.
move a to b
what is the answers for both cases?
IS it possible? Give me elementary move rules briefly......

Answer Posted / amarnath reddy

Hi,

That is wrong answer. we can get that result when we MOVE A
TO B. result is 1234.
because A is declared as alphanumeric and B is declared as
numeric but here A is intialized all numeric values(1234)
only and move to the B is also numeric So not possible to
get any abend.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

405


How do u write test cases?

1630


Define cobol?

854


how to refer the data field?

1793


What is the difference between perform … with test after and perform … with test before?

866






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

705


What do you understand by psb and acb?

659


Explain how you can characterize tables in cobol?

634


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8135


Write the code to count the sum of n natural numbers.

695


what are decleratives in cobol?

1819


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2095


what is the difference between COBOL2 AND COBOL390?

2439


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

735


What are the different rules of SORT operation?

689