Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / lu

before answering this questions, i say "you need to code
PROPERLY, CORRECTLY" ok ....you add S9() comp to S9() comp.
comp-3 with comp-3...ok...

Is This Answer Correct ?    0 Yes 0 No

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

Answer / vinodquestion

I dont know what you need mr. LU. My question is in place of '?' what do you code for that manipulations.. i.e give declarations for c,d and it satisfies both move,add operations.. if it is not possible give me your conclusion...

Is This Answer Correct ?    0 Yes 0 No

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

Answer / abhay

C should be declared as S9(04)
D should be declared as s(05)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer



More COBOL Interview Questions

How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

0 Answers  


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

0 Answers   IBM,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


Explain call by context by comparing it to other calls.

1 Answers  


can anyone explain me the concept of COMP-4 PLEASE??

2 Answers  






what is the difference between implicit and explicit scope terminator with example? 

1 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


is this below syntax correct? CALL 'subprg' using A,B Please help

2 Answers  


There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.

1 Answers   Mind Tree,


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


what is the use of keep and pass in disp

1 Answers  






Categories