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
How many bytes S(8) comp field occupy and its maximum value?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is link edit in cobol?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Which Search verb is equivalent to PERFORM…VARYING?
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 is rmode(24)
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Describe the cobol database components?
IF I mention stop run in CICS what happens?
How do u write test cases?
What is a scope terminator give example?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?