01 x pic s9(8) comp.
How will the following value be internally allocated
'18787'
Answer Posted / kapil arya
Basically Comp Makes the word boundary.
(0 - 4) 2 Bytes (Half Word boundary)
(5-9) 4 Bytes (Full Word Boundary)
(10-18) 8 byte Double word Boundary
Because it is s9(8) Comp..
So I will take 4 byte to store the date.
And it will allocated like:
01 87 87 , will store in 3 byte and one byte will be free
or unused..
Guys or Girls i have one question...
Related to JCL
I have a jcl where in a step i have one DD statement where
i am concatinating the 3 dataset..so in next step i want to
override the 3rd dataset only.. So how can i override the
3rd dataset.. Please let me know the answer...
Thanks to All..
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
For rewrite, why is it mandatory that file needs to be opened?
What guidelines should be followed to write a structured cobol prgm?
how to convert the recors form vsam file to db2 table tru file aid
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
) How do u handle errors in BMS macro
What is the difference between next sentence and continue in cobol programing language?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What kind of error is trapped by on size error option?
How to know whether the module is dynamical or statistical?
Write the code to count the sum of n natural numbers.
how do you reference the ksds vsam file formats from cobol programs
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between comp and comp-3?