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
What is cobol?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Mention the guidelines to write a structured cobol program?
What are the different data types in cobol?
What type of SDLC u followed? Why?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Difference between cobol and cobol-ii?
What are the rules of the move verb?
How are the next sentence and continue different from each other?
In COBOL programming, what is PERFORM? What is VARYING?
Differentiate between structured cobol programming and object-oriented cobol programming.
HOw can I get the negative sign while deduct high value from low value
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What kind of error is trapped by on size error option?
Write the code to count the sum of n natural numbers.