Agenda Reporting Work on Assignment 4! Printing on power systems.

Slides:



Advertisements
Similar presentations
DT266/2 Information Systems COBOL Revision. Chapters 1 & 2 Hutty & Spence Divisions of a Cobol Program Identification Division Program-ID. Environment.
Advertisements

ORDER VERIFICATION ORDER ENTRY DAILY PROCESS ORDER VERFICATION - Order Sort Browse - Enter Order # - F-8 OK.
Posting Column Totals from a Journal to a general Ledger
Chapter 6 Posting Ledger-A group of accounts. General Ledger-A ledger that contains all accounts needed to prepare financial statements. Posting-Transferring.
6-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
3-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emertius)
7 Copyright © Oracle Corporation, All rights reserved. Producing Readable Output with i SQL*Plus.
Lesson 5 Packed-Decimal or Computational-3 (COMP-3) MOVE TO WS-AMOUNT ====> 4 bytes instead of 7. Significant storage saving. On the.
Programming Logic and Design Fourth Edition, Introductory
Chapter 8 Printing 1. In COBOL you send data to the printer by writing data to a file. In COBOL, the printer is defined as a file, and it is opened, closed,
12-1 Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout John.
Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout.
3-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emertius)
 A General Ledger identifies each account individually and includes posted transactions and balances. ◦ Posting is the process of transferring original.
Chapter 5 Using Data and COBOL Operators. Initializing Variables When you define a variable in WORKING- STORAGE, you also can assign it an initial value.
Chapter 7 – Editing and Coding Standards Numeric field types –Numeric –Numeric-edited Use these only for the fields you define for printing purposes.
6-1 Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout John.
Lecture 31 Numeric Edited Alphabetic (A) AlphaNumeric (X) Numeric (9, V, S) Numeric Edited (9, Z, comma, decimal point, minus sign) –Z = zero suppressed.
The DATA DIVISION Chapter 3. COBOL Data Organization Field - group of characters forming a meaningful unit or basic fact –Characters in a name or digits.
3-1 Chapter 3. To familiarize you with  Ways in which data is organized in COBOL  Rules for forming data-names  Defining input and output files in.
3-1 The DATA DIVISION Chapter Chapter Objectives To familiarize you with Systems design considerations Ways in which data is organized Rules for.
UNIT 1 UNIT 1 Stephen S. Linkin Houston Community College System 8/28/ Copywrite © Houston Community College System 2007 Graphics Courtesy of IBM.
Printing on power systems Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File.
To familiarize you with  Options of MOVE statement  Rules for moving fields and literals  Printing edit symbols  Designing and printing reports 1.
1 Reports. 2 Objectives  Use concatenation in a query  Change column headings and formats  Add a title to a report  Group data in a report  Include.
Statement Syntax1 THE SELECT STATEMENT Purpose: designates a file and points to its physical location Syntax Definition : SELECT file-name-1 ASSIGN TO.
Any Questions? Control Breaks Agenda Control Breaks –Also known as Reports with sub-totals.
A Guide to SQL, Seventh Edition. Objectives Understand how to use functions in queries Use the UPPER and LOWER functions with character data Use the ROUND.
More Syntax in COBOL  Moving Data  Selection Statements  System Date  Indicators in Display files.
Arithmetic and Edited Pictures. Arithmetic Verb Template  Most COBOL arithmetic verbs conform to the template above. For example; ADD Takings TO CashTotal.
Lecture 61 Editted Output Editing Functions –Two broad classes : A) insertion and B) replacement and suppression 1.Printing decimal points 2.Suppressing.
2012.  Set up vendors in the Vendor list  Understand how to use classes in QuickBooks  Use QuickBooks for job costing  Enter expense transactions.
INPUT / OUTPUT STATEMENTS
Any Questions!. Test Coming Up! Agenda Printing with Externally Described Printer Files Arrays.
1 Chapter 5 – The Procedure Division File handling statements –OPEN statement Initiates processing for a file Input Output Each file opened must have been.
Any Questions? Agenda Level 77 Initialize Display & Accept Arithmetic Verbs Compute statement String/Unstring Inspect.
Posting. We now know about Journal entries. UNFORTUNATELY…they still do not give us the whole picture of the business’s finances. We need to provide more.
Chapter 3, Section 3 and 4 Accounting I/II.  What order is information recorded in the journal? ◦ Chronological order  What are used as proof that a.
Chapter 14 Formatting Readable Output. Chapter Objectives  Add a column heading with a line break to a report  Format the appearance of numeric data.
PowerPoint Presentation: Richard H. Baum, Ph.D. DeVry Institute of Technology 9th Edition Structured COBOL Programming Nancy Stern Hofstra University Robert.
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
Lecture 21 ENVIRONMENT DIVISION  defines files external to the program and devices.  contains two sections: 1.CONFIGURATION SECTION.  identifies computers.
Any Questions? Week 1 - 2nd Lecture Intro to COBOL Programming Defining Files and Processing Data.
COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
This is It! It’s been a pleasure! Final Exam – format True / false 5 Multiple choice 5 Short answers10 Data manipulation10 SQL 3 Array’s12 File processing25.
Analysis of SAMPLE1.CBL Please check speaker notes for additional information!
Week 2/3 - 2nd Lecture Intro to COBOL Programming Defining Files and Processing Data.
Posting Separate Amounts from a Journal to a General Ledger POSTING TRANSFERRING INFORMATION FROM A JOURNAL ENTRY TO A LEDGER ACCOUNT POSTING.
A Guide to SQL, Sixth Edition 1 Chapter 7 Reports.
Managing Expenses Chapter 3. PAGE REF #CHAPTER 3: Managing Expenses SLIDE # 2 Objectives Set up vendors in the Vendor list Understand how to use classes.
6-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Submitting Instructions on web site CS 1024 students Read guide
ACCOUNTS RECEIVABLE LEDGER AND GENERAL LEDGER CONTROLLING ACCOUNT
LESSON 8-1 Recording Adjusting Entries
Chapter 7 Posting 7 Chapter 7 – Posting | Accounting 1, 7th Edition.
Any Questions?.
LESSON 8-1 Recording Adjusting Entries
Chapter 3 The DATA DIVISION.
Structured COBOL Programming
LESSON 8-1 Recording Adjusting Entries
Agenda Collating sequence / Sorting data
LESSON 8-1 Recording Adjusting Entries
CHAPTER 17 The Report Writer Module
Chapter 2 The Balance Sheet
Lesson 4-2 Posting Separate Amounts from a Journal to a General Ledger
LESSON 8-1 Recording Adjusting Entries
Lesson 4-2 Posting Separate Amounts from a Journal to a General Ledger
LESSON 8-1 Recording Adjusting Entries
Any Questions?.
Section 2-1: Using T Accounts
Presentation transcript:

Agenda Reporting Work on Assignment 4!

Printing on power systems

Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File

Printing Reports with COBOL

A Good Report… Heading (a meaningful report name) –Date and Page Number Column Headings (to identify data) Order column from left to right to highlight significant data Edit numbers for readability Include Totals at end of report and groups of items ** To identify the ‘level’ of a total Clearly indicate the end of the report.

Customer Accounts How Many Record Formats? Customer Accounts Date: Page: 999 Date Amount Customer: 1015 Cindy Laurin $ $ $ * Totals: 1015 Cindy Laurin $ Customer: 1016 Bruce Nugent $ * Totals: 1016 Bruce Nugent$ ** Totals: All Customers $ *** End of Report

How Many Record Formats? HeadingCustomer Accounts Date: Page: 999 Column Heading Date Amount Customer Heading Customer: 1015 Cindy Laurin Detail Line $ Detail Line $ Detail Line $ Customer Total* Totals: 1015 Cindy Laurin $ Customer Heading Customer: 1016 Bruce Nugent Detail Line $ Customer Total * Totals: 1016 Bruce Nugent$ Report Total ** Totals: All Customers $ End of Report *** End of Report

Record Formats Each Record format is defined using it’s own Group-Item in the Working Storage Section. Record format name is defined using the 01 level Fields and literals are defined using subsequent levels with Picture & Values Clauses

Picture Clause Review Define Variables Define how Variables are displayed

Editing Functions FunctionCharacter Printing of a / as a separator/ Printing of Decimal Point in an integer. Suppress Leading Zeros in an integerZ Print a Dollar Sign in front of an integer$ Print a Comma in an integer, Printing of + or – signs+ or - Printing of ‘Debit’ or ‘Credit’ symbolsDB or CR Printing of Spaces as separatorsB Printing of Zeros as separators0 Print Leading asterix*

Examples Trans-Amount PIC S9(6)V999 Value Report-ItemEdited Results PIC 9(6)V999 PIC $999999V999 PIC $ZZZ,ZZZ.99 PIC $ZZZ,ZZZ.9

Examples Trans-Amount PIC S9(6)V999 Value Report-ItemEdited Results PIC $ZZZ,ZZZ.99- PIC $ZZZ,ZZZ.99CR PIC $ZZZZZZB99 PIC $ZZZZZZ.99+

Examples Trans-Amount PIC S9(6)V999 Value Report-ItemEdited Results PIC 9(6)V999 PIC $999999V999 PIC $ZZZ,ZZZ.99 PIC $ZZZ,ZZZ.9

Examples Trans-Amount PIC S9(6)V999 Value Report-ItemEdited Results PIC $ZZZ,ZZZ.99- PIC $ZZZ,ZZZ.99CR PIC $ZZZZZZB99 PIC $ZZZZZZ.99+

Examples Customer Name PIC X(20) Value ‘Cindy Laurin-Moogk’ Report Item PIC X(20) PIC XXXXXXXXXXBXX

Printing in COBOL FILE SECTION FD Customer-Report. 01 Print-Record-Out. WORKING STORAGE. 01 Heading-1 05 PIC X(8) Value Spaces. 05 PIC X(17) Value ‘Customer Accounts’ 05 PIC X(5) Value Spaces. 05 PIC X(6) Value ‘Date: ‘ 05 WS-Date-Out format of date. 05 PIC X(1) Value Spaces. 05 PIC X(6) Value ‘Page: ‘. 05 WS-Page PIC 9(3).

Printing or Writing to a Spooled File Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’ Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’ WRITE Print-Record-Out FROM Detail-Line-1 WRITE Print-Record-Out FROM Detail-Line-2

Printing or Writing to a Spooled File (using AFTER ADVANCING) Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’. Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’. WRITE Print-Record-Out FROM Detail-Line-1. WRITE Print-Record-Out FROM Detail-Line-2 AFTER ADVANCING 1 LINE.

Printing or Writing to a Spooled File (using BEFORE ADVANCING) Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’. Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’. WRITE Print-Record-Out FROM Detail-Line-1 BEFORE ADVANCING 1 LINE. WRITE Print-Record-Out FROM Detail-Line-2.

Printing or Writing to a Spooled File (using AFTER ADVANCING) Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’. Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’. WRITE Print-Record-Out FROM Detail-Line-1. WRITE Print-Record-Out FROM Detail-Line-2 AFTER ADVANCING PAGE.

Printing or Writing to a Spooled File (using BEFORE ADVANCING) Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’. Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’. WRITE Print-Record-Out FROM Detail-Line-1 BEFORE ADVANCING PAGE. WRITE Print-Record-Out FROM Detail-Line-2.

Printing or Writing to a Spooled File Detail-Line-1 PIC X(80) VALUE ‘Cindy’s Test’. Detail-Line-2 PIC X(80) VALUE ‘COBOL Line of Code’. WRITE Print-Record-Out FROM Detail-Line-1 AFTER ADVANCING 1 LINE. WRITE Print-Record-Out FROM Detail-Line-2 BEFORE ADVANCING 1 LINE.

Homework?