practical-9 - $ SET SOURCEFORMAT"FREE"...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
$ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. ReportExampleA. AUTHOR. Michael Coughlan. * Very simple version - only salesperson totals ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT SalesFile ASSIGN TO "GBSALES.DAT" ORGANIZATION IS LINE SEQUENTIAL. SELECT PrintFile ASSIGN TO "SALESREPORTA.LPT". DATA DIVISION. FILE SECTION. FD SalesFile. 01 SalesRecord. 88 EndOfFile VALUE HIGH-VALUES. 02 CityCode PIC 9. 02 SalesPersonNum PIC 9. 02 ValueOfSale PIC 9(4)V99. FD PrintFile REPORT IS SalesReport. WORKING-STORAGE SECTION. 01 NameTable. 02 TableValues. 03 FILLER PIC X(18) VALUE "Dublin Belfast ". 03 FILLER PIC X(18) VALUE "Cork Galway ". 03 FILLER PIC X(18) VALUE "Sligo Waterford". 03 FILLER PIC X(9) VALUE "Limerick". 02 FILLER REDEFINES TableValues. 03 CityName PIC X(9) OCCURS 7 TIMES. REPORT SECTION. RD SalesReport CONTROLS ARE SalesPersonNum PAGE LIMIT IS 66 HEADING 1 FIRST DETAIL 6 LAST DETAIL 42 FOOTING 52. 01
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/25/2010 for the course CMPN SEM4 taught by Professor Thakur during the Spring '07 term at University of Mumbai.

Page1 / 3

practical-9 - $ SET SOURCEFORMAT"FREE"...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online