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 the Purpose of Pointer in the string?
how do you define single dimensional array and multidimensional array in your cobol?
Explain how you can characterize tables in cobol?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
i want a program using by if, evaluate , string, unstring, perform, occurs?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How are the next sentence and continue different from each other?
Explain how to differentiate call by context by comparing it to other calls?
Explain about different table spaces.
In which area will you utilize 88 level items in cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is amode(31)
How do you get the data to code the BMS macro?
What is the difference between comp and comp-3?
IF I mention stop run in CICS what happens?