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


Please Help Members By Posting Answers For Below Questions

What is the Purpose of Pointer in the string?

632


how do you define single dimensional array and multidimensional array in your cobol?

661


Explain how you can characterize tables in cobol?

634


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1904


i want a program using by if, evaluate , string, unstring, perform, occurs?

4033






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

2320


How are the next sentence and continue different from each other?

753


Explain how to differentiate call by context by comparing it to other calls?

677


Explain about different table spaces.

638


In which area will you utilize 88 level items in cobol?

704


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)?

619


What is amode(31)

712


How do you get the data to code the BMS macro?

1468


What is the difference between comp and comp-3?

689


IF I mention stop run in CICS what happens?

1884