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 amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the various section in data division and briefly explain them.
What is the difference between perform … with test after and perform … with test before?
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)?
In which area will you utilize 88 level items in cobol?
What is the difference between PIC 9.99 and PIC9v99?
What is report-item in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
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.
how do you reference the esds vsam file formats from cobol programs
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is difference between cobol and cobol/400
How to remove 2 duplicate records and copy only one using job control language?