From the course: COBOL Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Using tables in COBOL - COBOL Tutorial
From the course: COBOL Essential Training
Using tables in COBOL
- [Instructor] We've all seen the need for using Excel at one point or another. So, we know the benefits of using a table. Here's an Excel table for a monthly budget. As you can see, we have columns representing each month of the year. And then we also have rows that show the income, the rent, the electric, the water and sewer, the groceries and the cell phone. This is just sample data that I made up, but I wanted you to see that this is an example of what a table would look like. Tables consist of a table name and cells called table elements. For those of you that are familiar with Java, or similar programming language, you can think of a table in COBOL as an equivalent to an array. Let's switch over to Visual Studio. In this sample program, I have a file that contains the CITY-NAME and 12 months worth of rainfall totals for each city. Each rainfall amount is a three digit number with an implied decimal point.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.