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
What are different data types in cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do define dynamic array in cobol.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Have you used comp and comp-3 in your project? And how?
What rules are followed by the search verb.
Are you comfortable in cobol or jcl?
What kind of error is trapped by on size error option?
how do you reference the ksds vsam file formats from cobol programs
What is redefines clause in COBOL?
What is the difference between goback, stop run and exit program in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
IF I mention stop run in CICS what happens?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?