How do you define a table/array in COBOL?
Answer Posted / anil prajapati
Table/array can be defined in cobol by using occurs with
times clause
like
working-=storage section.
01 tab1 value 'anilkumarprajapati'.
03 tab2 pic x(3) occurs 6 times indexed by i.
procedure division.
display tab2(i).
stop run.
output will be dsiplayed like
ani
lku
....
| Is This Answer Correct ? | 23 Yes | 9 No |
Post New Answer View All Answers
how to refer the data field?
What is the difference between next sentence and continue in cobol programing language?
What is the Purpose of Pointer in the string?
Write a program to enter and display the names of students in a class using the occurs clause.
what are decleratives in cobol?
State the various causes of s0c1, s0c5 and s0c7.
what is difference between cobol and cobol/400
Name the sections present in data division.
how to convert the recors form vsam file to db2 table tru file aid
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 I mention stop run in CICS what happens?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is Pic 9v99 Indicates in COBOL?
What are different data types in cobol?