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 - COBOL Tutorial
From the course: COBOL Essential Training
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…
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.
Contents
-
-
-
-
COBOL naming standards4m 9s
-
(Locked)
How to define types of data4m 37s
-
(Locked)
Comp-3 data types3m 40s
-
(Locked)
Literal and figurative constants4m 48s
-
(Locked)
Editing characters for writing reports5m 27s
-
(Locked)
Challenge: Create a sales commission report1m 33s
-
(Locked)
Solution: Commission report solution5m 59s
-
-
-
-
-
-
-
-
-