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
) How do u handle errors in BMS macro
What are literals?
What are the rules of the move verb?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What are various search techniques in cobol? Explain.
what is search and searchall?what is the diffrence between them?give an best example?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
how do you reference the esds vsam file formats from cobol programs
) How do u handle errors in BMS macro?
how do you reference the variable block file formats from cobol programs
Discuss about changing dataset name in proc.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What are the pertinent COBOL
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What the difference is between continue and next sentence?