How would the number +1234 be stored if a PIC clause of
PICTUREs9(4) comp-3 were used?
Answer Posted / suputhru
9(4) comp-3 takes 3 byets
each digit takes half byte.
-- -- -- 3bytes
numeric alignment is right to left <-----
first sign will store in half byte right. right.
c
-- -- --
then next 4 will store.
4c
-- -- -- like that
01 23 4c
-- -- -- will store.
Fonda is sign will store right most half byte.
-SK.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the Purpose of POINTER Phrase in STRING command in COBOL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
How many sections are there in data division in COBOL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Are you comfortable in cobol or jcl?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is comp-1 and comp-2?
Explain about different table spaces.
Give some examples of command terminators?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Difference between cobol and cobol-ii?
What guidelines should be followed to write a structured cobol prgm?