COMP field occupy ?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
internally it will store space like as
s9(n) comp where n is as
0-4 --->2 bytes
5-9 --->4 bytes
10-18 ---> 8 bytes
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / prakash shrivastava
comp is a binary storage format.....
0-4 2 bytes-1/2 word
comp is binary storage format...
it occupy--
0-4 2 bytes-1/2 word
5-9 4 bytes-1 word
10-18 8 bytes-2 word
| Is This Answer Correct ? | 4 Yes | 0 No |
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible
what happens when a copybook variables are declared using include statement ?
what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?
if a file has 1000 recods how copy the records from 1 to 100 records using sort
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
Why we should use cursor ?
How can we pass data from cobol to JCl?
what are the working storage fields in BMS macro?
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,