how to pass 100 to s9(4) how r they inserted ?
Answer Posted / rags
we can pass 100 to S9(4) field, S9(4) can store a value
upto 9999.
If the field is S9(4) Comp then it uses 2 bytes
If the field is S9(4) Comp-3, it uses 3 bytes.
This is a Special scenario: here Comp is prefered over comp-
3 due to less space it occupy ( though Comp-3 generally
occupies less space than comp fields)
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What type of SDLC u followed? Why?
How many bytes S(8) comp field occupy and its maximum value?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
HOw can I get the negative sign while deduct high value from low value
How do u write test cases?
how do you reference the variable unblock file formats from cobol programs
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Name the divisions, which are available in a cobol program?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
) how do u code after getting data?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are literals?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
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 comp and comp-3 usage?