i want to store 20 digits . h will u do it in cobol ?
Answers were Sorted based on User's Feedback
Answer / paray2x
Most of the modern compilers support upto 31 digits. Try
compiling your program and you'll be able to find out.
Else, if your requirement is only to store and not do any
computation, you can have a group variable.
05 My-number.
10 My-number-part1 pic 9(15).
10 My-number-part2 pic 9(5).
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / nitesh sethi
Use ARiTH(EXTEND) as compile option and you can extend
numeric field upto 30 digits
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / yogesh
U can use either tables(ARRAYS) or can store those values
as elementary data items
| Is This Answer Correct ? | 0 Yes | 1 No |
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
which of the following can be used as a check protection symbol a.Z b.S c.* d.+
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
What is an in-line perform ?
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
What is SDSF?
Why we are using comp and comp-3 in real time projects?
can we use the two 01 level in file discription ?
How to recover a deleted source physical file from library?
what is record label is empty or standard in file description of data division?
Differentiate between structured cobol programming and object-oriented cobol programming.