Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / tata
if we use comp3(packed decimal)
declare like 01 a pic s9(13)comp3.
13/2=6.5 and s takes extrahalf byte.
that is 6.5+0.5=7.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the different data types in cobol?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
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
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
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 ......
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are the different rules to perform a Search?
Name the divisions, which are available in a cobol program?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
how to access the file from prodution from changeman tool and to submit a file to production
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Why occurs cannot be used in 01 level in COBOL?