Presentation © Copyright 2002, Bryan Meyers Introduction to Programming and RPG Chapter 1.

Slides:



Advertisements
Similar presentations
By Wanda Gibson, CI, MMI, SME. Microsoft Access Access is a database management system. This system lets you create and process data. A database is a.
Advertisements

Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Chapter 3: Modules, Hierarchy Charts, and Documentation
Chapter 2: Modularization
Programming Logic and Design Fourth Edition, Introductory
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Programming Creating programs that run on your PC
Chapter 2- Visual Basic Schneider
COSC 120 Computer Programming
Computers: Tools for an Information Age
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 2: Input, Processing, and Output
Chapter 1 Assuming the Role of the Systems Analyst
Modules, Hierarchy Charts, and Documentation
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
Chapter 1 Program Design
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Programming Logic and Design Fourth Edition, Introductory
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Programming Languages: Telling the Computers What to Do Chapter 16.
Presentation © Copyright 2002, Bryan Meyers Defining Data with Definition Specifications Chapter 3.
Invitation to Computer Science 5th Edition
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Structured COBOL Programming, Stern & Stern, 9th edition
Getting Started Chapter 2 Presentation © Copyright 2002, Bryan Meyers
Simple Program Design Third Edition A Step-by-Step Approach
INTRODUCTION TO COMPUTING CHAPTER NO. 06. Compilers and Language Translation Introduction The Compilation Process Phase 1 – Lexical Analysis Phase 2 –
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
CSC-115 Introduction to Computer Programming
Presentation © Copyright 2002, Bryan Meyers Externally Described Files Chapter 6.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Visual C++ Programming: Concepts and Projects
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
DATABASE MANAGEMENT SYSTEMS CMAM301. Introduction to database management systems  What is Database?  What is Database Systems?  Types of Database.
Welcome to RPG544. Bit about Cindy Administrative Stuff Standards Due Dates Web Page.
Chapter 5 Uma Gupta Introduction to Information Systems  2000 by Prentice Hall. 5-1 Database Design and Management.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
The Hashemite University Computer Engineering Department
Copyright © 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Structured Programming
Chapter 2- Visual Basic Schneider
System Design.
Chapter 4 Relational Databases
An Introduction to Structured Program Design in COBOL
Databases and Structured Files: What is a database?
Chapter 2- Visual Basic Schneider
Database Design Chapter 7.
Presentation transcript:

Presentation © Copyright 2002, Bryan Meyers Introduction to Programming and RPG Chapter 1

Programming in RPG IV Third Edition 2 Objectives Describe the history of RPG Describe program variables Describe the types of data files Describe data hierarchy Explain how data is represented on the printer spacing chart Describe the program development cycle

Programming in RPG IV Third Edition 3 History of RPG Early 1960s: RPG - Report Program Generator Late 1960s: RPG II –With release of System/3 1979: RPG III –Interactive programming –Database –Structured Programming 1988: RPG/400 –Upgrade to RPG III 1994: RPG IV –Integrated Language Environment (ILE) –Modular Programming

Programming in RPG IV Third Edition 4 Program Variables Program variable: a location in the memory of the computer that can store data RPG commonly uses the term field rather than variable All variables used in a program must be defined –Name –Length –Data type

Programming in RPG IV Third Edition 5 Data Files Transaction files –Contain information about day-to-day business occurrences Master files –Contain definitive information about customers, products, etc.

Programming in RPG IV Third Edition 6 Data Hierarchy File –Collection of data about a given kind of entity or object –Record –Collection of data about one specific instance of the entity Field –One piece of data on the record –Generally represents the smallest unit of data that we want to manipulate within a program.

Programming in RPG IV Third Edition 7 Programming Specifications Record Layouts –Input Processing required –Process Printer Spacing Charts –Output

Programming in RPG IV Third Edition 8 Printer Spacing Charts PSC NotationMeaning $XXXX.XXFixed dollar sign, no zero suppression, no comma $X,XX0.XXFixed dollar sign, zero-suppress to unit’s place, insert commas $X,XX$.XXFloating dollar sign, zero-suppress to unit’s place, insert commas XX0No currency symbol, complete zero-suppression XXXNo sign diplayed -XX0Fixed sign, complete zero suppression -XX-.XXFloating sign, zero suppress to unit’s place XX0.XX-Trailing sign, zero-supress XX0.XXCR“CR” for negative value, zero-suppress

Programming in RPG IV Third Edition 9 Program Development Cycle Define the problem Design the solution Write the program Enter the program Test and debug the program Document the program Maintain the program

Programming in RPG IV Third Edition 10 Program Entry and Testing Start Enter/edit Source Compile Program Syntax Errors? Bind Program Run Program Logic Errors? Stop Yes

Programming in RPG IV Third Edition 11 Points to Remember RPG is a high-level programming language introduced by IBM in the early 1960s to provide an easy way to produce commonly needed business reports Variables enable programs to process different sets of data Data is typically organized in a hierarchy of files, records, and fields