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 |
01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases
Write the syntax of a two dimensional array?
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
What is the difference between PIC 9.99 and 9v99?
What will happen if we generate GDG (+2) version without generating (+1) version?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
In an array processing what is the thing that can be done by using subscripts but not by using index
What do you understand by psb and acb?
What is the difference between static call & Dynamic call?
without performing any operations on a file how can i know whether it contains data or not
if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.
How do you do in-line PERFORM?