a pic s9(4) comp
b pic s9(4) comp-3
c ????????????????
d ????????????????
move a to c
add a+B giving d.

what is ur declaration for c,d?

Answer Posted / mithlesh

since A is the comp field it takes 2 bytes space and B is
the comp-3 field it takes 3 bytes .

Now for the the declaration C and D they must be declaraed
into s9(4) and S9(5) pic caluse.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the fixed unblock file formats from cobol programs

696


What is a scope terminator give example?

644


What are the different open modes available in cobol?

711


Can we redefine the field of x(200) to less than 200?

803


How do we get current date from system with century in COBOL?

788






What is rmode(any) ?

676


Explain about different table spaces.

635


Name the sections present in data division.

691


Which is not true about evaluate statement

1557


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1768


What are different data types in cobol?

674


how to move the records from file to array table. give with code example

2205


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

2079


What is an in line perform? When would you use it? Anything else you wish to say about it.

632


What are the different types of condition in cobol and write their forms.

647