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: Commission report solution

Solution: Commission report solution - COBOL Tutorial

From the course: COBOL Essential Training

Start my 1-month free trial

Solution: Commission report solution

(upbeat music) - [Instructor] How did you make out with this challenge? Remember, just like everyone uses language a little differently. Every programmer writes code in a slightly different manner. I'd like to show you my solution. It's available in retro size files folder under chapter two, and it's titled SalesCommissionSolution.cbl I'm going to highlight the changes that I made to the original sales program. Starting with, right here in the file control section on line 20, I'm adding the new report that I need to create. So I have select commission report and I'm assigning it to the file name COMMISSIONREPORT.DAT remember that's the name that will be on my computer. Let me scroll down a little bit. In the file section, I need to give this file a file definition. Since this file will contain a report I really only need to define one group item. So in line 41 is my file definition for the commission report. And…

Contents