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 |
what is the maximum error code in mainframe
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is Comm?
2 Answers IBM, Kemper Corporation,
What are the functions like c or c++ in cobol?
how to transfer the file from pc to mainframe??
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
What are the cobol coding sheets?