practical10 - RISHI AGARWAL ROLL NO 02 SE CMPN A $ SET...

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

View Full Document Right Arrow Icon
RISHI AGARWAL ROLL NO 02 SE CMPN A $ 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.

Page1 / 2

practical10 - RISHI AGARWAL ROLL NO 02 SE CMPN A $ SET...

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