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.

Solution: Search table of weather data

Solution: Search table of weather data - COBOL Tutorial

From the course: COBOL Essential Training

Start my 1-month free trial

Solution: Search table of weather data

(upbeat music) - How did you make out with the challenge for this chapter. So this chapter was concentrating on using tables. So let's take a look at my solution. So here you can see on line seven I am reading in the "Weather2020.DAT" file. On line 13 is the start of the record layout for this file. It included a station number, the month, day, year a average temperature and then true or false for whether or not there was fog that day, rain, snow, hail thunder or tornado. Now, you do want to mention that the data that I use is just the first hundred records that were retrieved from my Google BigQuery. And I believe, most of the information that I retrieved in the first hundred records is from Canada. So you'll notice that there's a lot of days that had snow but let's continue down. So in working storage, what I want to point out here is the table definition. So again, on line 43 we have "Weather Info Occurs 100…

Contents