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
Answer Posted / 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 |
Post New Answer View All Answers
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How are the next sentence and continue different from each other?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how do you reference the variable unblock file formats from cobol programs
Name some of the examples of COBOl 11?
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 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
What is the usage of comp fields in cobol?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
IF I mention stop run in CICS what happens?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Write a cobol program making use of the redefine clause.
Differentiate between structured cobol programming and object-oriented cobol programming.