How to define variable 9(20) in COBOL, because compiler
does not allow us to declare variables with Pic 9(18). Can
anyone please let me know the answer... I know one answer
to this question which is to use Compiler option Arith
(Extend) during Compilation. It extends the maximum limit
to 9(32)..Just wanted to know if there is any other way to
extend this?
Answer Posted / sachin borase
Use the varchar.
01 var-char-variable.
49 ws-letch s9(4) comp.
49 ws-text 9(20).
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
) How do u handle errors in BMS macro?
What are the various section in data division and briefly explain them.
what is amode(24), amode(31), rmode(24) and rmode(any)?
What are the different data types in cobol?
Mention the guidelines to write a structured cobol program?
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?
how to convert the recors form vsam file to db2 table tru file aid
Write the code implementing the perform … varying.
What is the compute verb? How is it used?
what is search and searchall?what is the diffrence between them?give an best example?
How many bytes S(8) comp field occupy and its maximum value?
explain sorting techniques in cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
HOw can I get the negative sign while deduct high value from low value