How do you define a table/array in COBOL?
Answer Posted / thaya
To define a table use occur clause ..
01 WT-TABLE-DATA.
03 WT-TAB-PARM OCCURS 99 TIMES
INDEXED BY WT-TAB-IDX.
05 WT-TAB-PARMREC.
10 TBL-PARM-UPDT-CD PIC X(02).
10 FILLER PIC X(01).
10 TBL-STATUS-FLAG PIC X(01).
10 FILLER PIC X(76).
we can use "depending on" keyword with occure clause to
limit our occurences in output.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
How do we get current date from system with century in COBOL?
Name some of the examples of COBOl 11?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are literals?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
what is difference between cobol and cobol/400
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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?
Why did you choose to work with ibm mainframe cobol programming?
IF I mention stop run in CICS what happens?
Define static linking and dynamic linking.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is rmode(any) ?
What are the different rules of SORT operation?