How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.
Answer Posted / guest
Folloiwng will be space allocation:
A - 4
B - 7
C - 8
D - 3
E - 2
Total 24 bytes.
| Is This Answer Correct ? | 2 Yes | 8 No |
Post New Answer View All Answers
What are declaratives and what are their uses in cobol?
What are the different rules to perform a Search?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Why occurs cannot be used in 01 level in COBOL?
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.
What is amode(24)?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How do you reference the fixed block file formats from cobol programs
IF I mention stop run in CICS what happens?
What is the difference between structured cobol programming and object alternativelyiented cobol?
) how do u code after getting data?
What are the different data types in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?