can u give result for the fallowing example...
05 a pic 9(2)
05 b redifines a pic x(2).
move 'xy' to b.
display a,b.

Answer Posted / santhosh vayathuri

redefines will not check whether is numeric data type or
alphanumeric datatype simply it will display the value what
ever there in the memory . so for this question answer is

a = xy

b = xy

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2047


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

559


) how do u code after getting data?

1578


How do you get the data to code the BMS macro?

1470


What is a report item?

734






2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2095


i want a program using by if, evaluate , string, unstring, perform, occurs?

4039


When is inspect verb is used in cobol?

670


What is report-item in COBOL?

702


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

725


Whats the difference between search & search ALL?

5244


how do you reference the rrds file formats from cobol programs

789


What are different data types in cobol?

683


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5049


What kind of error is trapped by on size error option?

735