Label Assignment Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Writing a Business Letter
Advertisements

1. Write an Excel text function in cell Company Data!A4, which may be copied down, to string together the first and last name with only the first letter.
Order Entry System Please use speaker notes for additional information!
HTML and Forms Please use the speaker notes to receive the comments accompanying the slides!
File Structure Fundamentals (D.H.)1 Learning Objectives Field and record organization Index file C++ code that deals with field and record organization.
Writing the Basic Business Letter
The Business Letter CAHSEE strand and format. Standard  2.5 Write business letters:  Provide clear and purposeful information and address the intended.
Chapter 6 Data Flow Diagramming Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
SQL Use of Functions Character functions Please use speaker notes for additional information!
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,
MBAC 611.  Within your private mbac611 folder create a lab5 folder.  Copy the Moodle file lab3_vars to your lab5 folder.  Start Mathematica  Enter.
Part 3-4 Chapter 3. Letter Date Be careful when writing the date. All-number dates are written differently in British English (31/12/00) and American.
The Golden Rule (of field notebook keeping) A third party should be able to run the fieldtrip solely based on the directions, notes and observations recorded.
LETTER WRITING Kindly contributed to the Adult Basic Skills Resource Centre Robert Holt, Henley.
Modifications to program Addda.cbl Please use speaker notes for additional information!
Break Processing Please use speaker notes for additional information!
Formatting a Business Letter. Overview  Sender’s Address  Date  Recipient's Address  Salutation  Body  Closing  Enclosures  Typist Initials.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
XML, DTD, ENTITY Please see speaker notes for additional information!
ENCOMPASS High Volume Process Instructor: –Gerri Williams 8/17/2011.
Agenda Reporting Work on Assignment 4! Printing on power systems.
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.
Printing on power systems Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File.
Array - adding to array at run time Please see speaker notes for additional information!
XML and DTD Please you speaker notes for additional information!
SQL and Conditions Speaker notes will provide additional information!
Order Entry Program Please see speaker notes for additional information!
Functions Please use speaker notes for additional information!
Structured Programming
Welcome to State of Michigan Time & Expense Processing Employee Expense Modification (No Advance) Tutorial Brought to you by the Office of Financial Management.
12.2 The Fundamental Counting Principle Understand the fundamental counting principle. Use slot diagrams to organize information in counting problems.
Introduction to Oracle - SQL Additional information is available in speaker notes!
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
Programming Assignment #2 in CIS12 Please use speaker notes for additional information!
CPSC 252 Hashing Page 1 Hashing We have already seen that we can search for a key item in an array using either linear or binary search. It would be better.
Writing a business letter
COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Analysis of SAMPLE1.CBL Please check speaker notes for additional information!
MapReduce Joins Shalish.V.J. A Refresher on Joins A join is an operation that combines records from two or more data sets based on a field or set of fields,
Presentations: Importing RTF File Tip: Always import the RTF file into PowerPoint first. Make sure you have selected all files when trying to import the.
PHP with MYSQL Please use speaker notes for additional information!
02/03/ Strings Left, Right and Trim. 202/03/2016 Learning Objectives Explain what the Left, Right and Trim functions do.
Two file sequential file processing (maximum 1 record per id on each file) Please use speaker notes for additional information!
Sequential Processing to Update a File Please use speaker notes for additional information!
Sequential Update Assignment Notes Please use speaker notes for additional information!
Data Please use speaker notes for additional information!
Secondary Student Information System Extracts and Ad-hoc Reporting 1.
Visual Basic - Break Processing
Submitting Instructions on web site CS 1024 students Read guide
Business Letters and Résumés
Structured Programming
Data File Import / Export
Arrays in C.
Introduction to the Array
Please see speaker notes for additional information!
Please use speaker notes for additional information!
Omni Facility Services Quality Inspection Training
Chapter 3 The DATA DIVISION.
Please use speaker notes for additional information!
Structured COBOL Programming
Minor, Intermediate and Major Breaks
Microsoft Applications
Writing the Basic Business Letter

CHAPTER 17 The Report Writer Module
2 file sequential matching with multiple records allowed on file 2
How to Write a Business Letter
Multiplying Whole Numbers
Please use speaker notes for additional information!
Presentation transcript:

Label Assignment Please use speaker notes for additional information!

2-up JDE SDS Mr John Doe Sally Davis 12 Elm St 45 East Main St Hingham, MA Seekonk, MA MFY DFD Dr Mary Foley Dick Field 3 Heritage Rd 35 West St Fall River, MA Braintree, MA Note that the sample labels above are 2-up which means there are two labels written together. We will assume that the labels are 6 lines deep and 30 characters across. Since I am writing 4 lines of information, I will leave the 1st and 6th lines blank. The print line can support 80 characters. I am using 60 characters for the labels. In need to account for the other 20. You would do this by looking at the labels that you buy to run, for our purposes you can leave spaces in front, between, after or just in front and after. You decide on the layout.

Labels To process, you need to read a record and set up the label and then read another record and set up the label. When both labels are setup you can write. Note that you will be writing two ids when you write the id line and two names when you write the name line etc. I suggest that you consider setting up four output line with two slots on each line. You should also set up one or more work areas to use in manipulating the data. For example, when you are setting up the name you need to have a work area to hold the name after it is flipped. Then, I would take that flipped name and move it to the name output line. If this is the first record, the name goes in the first slot of the name line. If this is the second record, the name goes in the second slot of the name line. If this is the third record, the previous two need to be written and then the name gets set up in the first slot of the name line. spaces slot for name 1 (30 chars) spaces possibly slot for name 2 (30 chars) spaces spaces slot for id 1 (30 chars) spaces possibly slot for id 2 (30 chars) spaces spaces slot for csz 1 (30 chars) spaces possibly slot for csz 2 (30 chars) spaces spaces slot for adr 1 (30 chars) spaces possibly slot for adr 2 (30 chars) spaces

Labels JDE SDS Mr John Doe Sally Davis 12 Elm St 45 East Main St Hingham, MA Seekonk, MA ID: 1234 Title: 1 Name: Doe/John St Number: St Name: Elm St Type: St City: Hingham State: MA ZIP: 02043

Label Mr 4 Mrs 5 Mr & Mrs 8 Possible way to handle the title if you are coding in COBOL - a table/array with two elements. The first element is the title itself and the second element is the character position where the first character of the first name should appear if there is a title. Title Where first character of first name should go. Note that an IF can omit an empty title or a title containing 99. Other titles and the information on where the first character of the first name should go can be extracted from the table/array.

Labels JDE SDS Mr John Doe Sally Davis 12 Elm St 45 East Main St Hingham, MA Seekonk, MA ID: 1234 Title: 1 Name: Doe/John St Number: St Name: Elm St Type: St City: Hingham State: MA ZIP: The street number must be stripped of its leading zeros so that the actual number aligns against the left wall.Then the street name and type must be concatenated with the number with one space between the parts.

Labels JDE SDS Mr John Doe Sally Davis 12 Elm St 45 East Main St Hingham, MA Seekonk, MA ID: 1234 Title: 1 Name: Doe/John St Number: St Name: Elm St Type: St City: Hingham State: MA ZIP: Note that comma comes directly after the street name. The city name should be followed by a comma and a space and then the state. The ZIP should appear in characters so that it appears at the end of the label for ease of processing.

Labels Processing: You read a record and set it up and then read another record and set it up. After every two records you write. This means you need a counter to keep track of when to write. After you write, you need to clear out the output areas in preparation for the next two records. When EOF is reached, there may be a record left to right if there are an odd number of records in the file. This needs to be handled.