consider the following piece of code
01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWENCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be
displayed by the statement
DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250
Answers were Sorted based on User's Feedback
Answer / tarun nigam
Since the over all PIC of Gross-Pay is 9(8). The value of
Gross Pay would be 01000250 i.e. the answer (B) is correct
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / rama krishna
b. since PIC 9(5) = 01000
and PIC 9(3) = 250
Hence the result is 01000250
| Is This Answer Correct ? | 6 Yes | 0 No |
tell me about examine inspect and evaluate ?
) What is the use of IGNORE?
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
1) can we display the index?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
What are the divisions in a cobol program?
How you can read the file from bottom?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is XDC ?
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.