can we declare s9(9)v9(9) in cobol ? if yes how many bytes
it will occupy ?(urgent plz answer it)
Answer Posted / rajagopal
For the above question the answer is 19.Because sign is
allocated automatically and in cobol user defined value
should not exceed 18.so it'll take 19bytes including sign
without giving any error.but if you give
s9(9).9(9),definitely it'll give error because it's user
defined length is 19 and with sign it'll take 20 bytes and
it'll definitely throw an error.Anyway if you give
parm.cobol=arith(extend) in compile JCL both the above cases
will work.
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is redefines clause in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
Discuss about changing dataset name in proc.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
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 Pic 9v99 Indicates in COBOL?
What is link edit in cobol?
how do you reference the esds vsam file formats from cobol programs
Whats the difference between search & search ALL?
In COBOL, what is the different between index and subscript?
What are the cobol coding sheets?
Explain what you understand by passing by value.
What is a report item?
What is rmode(any) ?