From the course: COBOL Essential Training

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Editing characters for writing reports

Editing characters for writing reports - COBOL Tutorial

From the course: COBOL Essential Training

Start my 1-month free trial

Editing characters for writing reports

- In the example program so far, such as this Sales.cbl, we've seen how to use the picture clauses to format input and working storage fillers. But one of the major uses of cobalt, is its ability to write reports. In this example program, we did have a report that included a heading line, a detail line and a total line. But let's take a look at the report that got produced. I'm going to open the report in my Exercise Files folder under chapter two, and it's called SALESREPORT.DAT As you can see there's no formatting for the numeric portion of the report. And it's actually kind of hard to read. If I wanted to have a glance say, what was Patti's Shilling's yearly sales, it's very difficult to actually read the numbers but it looks like 123,000. Also in line 14, there's this random number, it's not even evident that is the total sales for all of the sales people. So this is actually a very poorly formatted report. Let…

Contents