consider the following piece of code
01 GROUP-ITEM
05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50
05 AMOUNT-2 PIC 9(4)V99 USAGE COMP
MOVE ZERO TO GROUP-ITEM
ADD 50 TO AMOUNT-1
what will be the content of AMOUNT-1?
a.50
b.100
c.0
d.unpredictable
Answer Posted / jyotiprakash8
a is write ans
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is comp-1 and comp-2?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Write a program that uses move corresponding.
What is an in line perform? When would you use it? Anything else you wish to say about it.
how can i see junk values in dclgen or in hostvariable of comp ?
What guidelines should be followed to write a structured cobol prgm?
What type of SDLC u followed? Why?
what is amode(24), amode(31), rmode(24) and rmode(any)?
how do you define single dimensional array and multidimensional array in your cobol?
What are the different rules for performing sort operation?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What rules are followed by the search verb.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps