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 are the different open modes available in cobol?
What are the different rules of SORT operation?
What are the pertinent COBOL commands?
what are decleratives in cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the compute verb? How is it used?
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 esds vsam file formats from cobol programs
What are 77 levels used for?
What is the Purpose of Pointer in the string?
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.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is link edit in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?