How do you define a table/array in COBOL?
Answer Posted / mojib khan
To define a table using occurs clause..
working -storage section.
01 table.
*for one dimensional array
02 table-name pic size() occurs n times.
03 field1-name pic size.
03 field2-name pic size.
.......
........
........
03 fieldn-name pic size.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Mention the guidelines to write a structured cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are the rules of the move verb?
What is the Purpose of Pointer in the string?
What are the pertinent COBOL commands?
How you can characterize tables in cobol?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Why would you use find and get rather than to obtain?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What are the different data types in cobol?
How do get the result of your program directly on your pc?