1 Week 1 – CS230 - RPG zRick Flagler zIBM Academic Initiative program zMission – train aspiring CS majors on the IBM Midrange computer technology yThe.

Slides:



Advertisements
Similar presentations
Project Title Here IEEE UCSD Overview Robo-Magellan is a robotics competition emphasizing autonomous navigation and obstacle avoidance over varied, outdoor.
Advertisements

Programming Creating programs that run on your PC
Information Architecture. WHY??? I THOUGHT THIS WAS A COURSE IN OPERATIONS MANAGEMENT Information architecture underlies the entire enterprise computing.
8 Systems Analysis and Design in a Changing World, Fifth Edition.
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Jan. 25, 2001CSci Clark University1 CSci 250 Software Design & Development Lecture #4 Thursday, Jan. 25, 2001.
Course: Introduction to Computers
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Welcome to Psychology 437 Advanced Psychology Lab: Research Methods in Personality Psychology web page:
History FARGO Precursor to RPG RPG Released in 1959 for use with punched card machines RPG II 1969; first to handle i/o devices or workstation RPG III.
1 Develop a large software with IBM Rational ® Software Engineering Semester Project Chih-Hong Jeng & Farn Wang fall 2006.
Introduction to Database using Microsoft Access 2013 Part 1 November 4, 2014.
Agenda What is Computer Programming? The Programming Process
Programming Languages
CSC 110 – Intro to Computing Lecture 2: More Computing History & Binary Numbers.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
CIS 321—IS Analysis & Design Chapter 1: The World of the Modern Systems Analyst.
Open Source: It's Already Here Dave Cross Magnum Solutions Ltd
University of Utah 1 IBM Dominates the industry Critics complain that IBM doesn't innovate -Sound familiar?
© Keith Vander Linden, Oracle is clinging to the top spot in the multibillion-dollar database software market, despite mounting pressure from IBM.
IBC233 Week 1 Updated Fall 2010 Homework? Finish Lab 1 – hand in compile listings of the two programs at the beginning of next week’s Lab Period!
+ Navigating Campus Technology Presented by Stephanie Jasmin.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
L1C1introops400.ppt1 Welcome! OPS400 students to the AS/400, iSeries Mid-Range Operating System Used for Commercial applications and as powerful servers.
W1L1ops400.ppt1 Welcome! OPS400 students to the AS/400 Mid-Range Operating System.
CS 1410 Intro to Computer Tecnology Computers and History1.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
COMPUTER PROGRAMMING I SUMMER 2011 Programming Languages.
1 History of compiler development 1953 IBM develops the 701 EDPM (Electronic Data Processing Machine), the first general purpose computer, built as a “defense.
Linux on System z
Moving forward quicker than you think! By Niels Liisberg CTO, System & Method A/S Copenhagen, Denmark.
Visual C++ Programming: Concepts and Projects
Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Web Design and Development for E-Business Jensen J. Zhao.
1 Week 1: The History of Computing: Software READING: Chapter 1.2.
1 ITEC 3010 “Systems Analysis and Design, I” LECTURE 8-1: Evaluating Alternatives for Requirements, Environments, and Implementation Evaluating Alternatives.
Federated Database Set Up Greg Magsamen ITK478 SIA.
Win32 Programming Lesson 2: The Tools of the Trade.
C O B O L Mark T. Flancbaum CS /6/02 OmmonOmmon usinessusiness rientedriented anguageanguage.
Welcome to BAC344! Business Applications using COBOL Andre Berns.
Slide 1 Introduction to Infinite Corporation for Microsoft.
CS101 Computer Software. Software Software is... Two main types of software are…
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
FORTRAN History. FORTRAN - Interesting Facts n FORTRAN is the oldest Language actively in use today. n FORTRAN is still used for new software development.
HERY H AZWIR Syllabus Introduction to Computer & IT.
Introduction to bibliographic software and Mendeley Anyone can use this - just put your name here.
CS 157B: Database Management Systems II April 22 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak.
IBC233 Week 2 Updated Fall 2011 Homework? Finish Lab 1 – Due Today! Send me an with your userid when you are done! Download and install software.
1 SYS366 Week 2 - Lecture 2 Visual Modeling & UML.
SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc.
1 MIT 5316 Web-Based Computing Lecture 1. 2 Welcome Introduction Syllabus.
6/14/20161 System Administration 1-Introduction to System Administration.
DBM 380 Week 2 Individual Assignment Database Design Paper Write a 350- to 700-word paper in which you do the following: Explain what database systems.
BIS 318 Week 4 Individual Assignment Computer Based Training Article Questions Read the ERR articles and the Poppler’s scenario located under the materials.
Computer science Computer science is a broader and much wider field as compared to programming. In the case of programming, we utilize the concepts.
Systems Analysis and Design in a Changing World, Fifth Edition
Computer Science 2 What’s this course all about?
Chapter 9: The Client/Server Database Environment
IBC233 Week 2 Updated Winter 2011
IBM AS 400 online Training in Hyderabad
iSeries Interface Green screen Web browser Web service Transport 5250
Programming languages and software development
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
ບົດທີ 6 ການຄຸ້ມຄອງຊັບພະຍາກອນຂໍ້ມູນ (Managing Data Resource)
IT Service Delivery And Support Week Three - OS
IBC233 Week 2 Updated Fall 2011.
Welcome to BAC344! Business Applications using COBOL
A RESTful Approach to XML Integration
Presentation transcript:

1 Week 1 – CS230 - RPG zRick Flagler zIBM Academic Initiative program zMission – train aspiring CS majors on the IBM Midrange computer technology yThe IBM i operating system yOperations and Navigation yDB2 database yRPG Language You are here

2 What you need for this class zCredentials for server – the IBMi system yUserid and Password zComputer yLab access (required) yYour own desktop or laptop ziSeries Access software – available in Lab yServer will have 6.1 but version 5.4 or higher will work y5250 Emulation (aka Telnet) zIBM Rational Developer for i – RDi version 8 – available in Lab zWeb Access to Class website yhttp://Pie3.keene.edu\courses\CS230 yRPG Reference Manual yHomework assignments zThumb Drive zPrinter zCDs of iNav and RDi are available at low cost iSeries Account Thumb Drive Your Computer

3 Our approach to learning RPG zLab oriented zWrite a program each week or so zGradually increase complexity Does everyone have a laptop with wireless? Ideal scenario is to work on some in-class projects in classroom

4 What is our agenda? zReview RPG language zDiscuss i/OS integration zCommonality with other ILE languages

5 What is our agenda? zReview RPG language yEvolution yThe most popular BUSINESS language for IBM computers yThousands of applications written in RPG today yMillions of lines of code ySeveral World-Class ERP systems xJD Edwards/Oracle xMAPICS xMOVEX z i/OS integration yDB2 integration xNative Operation Codes or SQL yMany API interfaces xEasy interface to system function z Commonality with other ILE RPG languages yJava yC yCOBOL yREXX yCL

6 Whats it all about – a little history zWhat is RPG? yOriginal Name = Report Program Generator yInvented on mainframe ySpecifically for business yName maybe no longer meaningful but… yStill a very powerful BUSINESS language

7 RPG, RPGII, RPG III, RPG IV, ILE RPG, VisualAge RPG – why all this RPG zRPG has had several variations ySeveral still exist ySimilar to COBOL, another popular business language zWe will study most modern version yFree format RPG zSample syntax: –IF (A <= B); – C= C + A; –ELSE; – C = C + B; –ENDIF;

8 Current RPG = ILE RPG ILE embraces highly modular programming where main program, modules and service program modules are bound together to form executable programs. In PC development environments OBJ + DLL = EXE – same here. ILE = Integrated Language Environment

9 Input – process - output zAll computers and languages fundamentally same zModern RPG is predominantly procedural yLogic is controlled by the programmer yProgram flow can use function keys (interactive), status codes (files) or events (web) to control what happens zModern RPG yDefine Files (input or output) yDefine Calculations (process) yDefine variables, structures, subroutines, procedures, functions, embedded SQL, API calls, Java Method calls

10 What can we do with todays RPG? zInteractive applications yInquiry over database yData Entry to database zBatch applications yReports to paper yReports to PDF yReports to web pages yService Oriented Architecture (SOA) – applications interacting with other applications over the Internet zClient Server applications yGUI – web based applications backed by RPG programs yBrowser activated CGI programs yJava Applet thin-client programs (translated from RPG) yRPG called from Web sites via EGL x Enterprise Generation Language – an IBM open source language

11 Development cycle zEnter/Change source Code zCompile source to create an object or module z{Bind multiple modules together to create one executable object} zTest zMove from testing to production and use Repeat

12 Where is source code stored? zLibrary – A Library is a container for objects zSource Physical File – is a container for multiple source members zSource PF Member – is a container for one piece of source code – member have a type (RPG, RPGLE, CLP) zCompile member to get *PGM object zLibrary/SourceFile(member) zExample: yLibrary = CSXXX yFile = QRPGSRC or QRPGLESRC yMember = MYPGM yType = RPGLE Everyone will have a QRPGSRC file in their library You can store various types of members in any source file. You dont have to use QRPGSRC but could create RickSrc if preferred. IBMs suggested conventions for naming: QRPGSRC, QDDSSRC, QCLSRC, QCBLSRC, QSQLSRC are generally followed.

13 Development Source Physical file Source Entry Utility (SEU) Editor Source member 1 Source member 1 Source member 1 Source member 1 Source member 1 Source member 2 Source member 1 Source member 1 Source member 1 Source member 1 Source member 1 Source member 8 Source member 1 Many source members in a single file Each member will correspond to an object or module Each member is complied to create an executable Source FILES typically named for type of source QRPGSRC QCLSRC But could be named APSRC for Accts Payable OESEC for Order Entry source

14 How do you edit the source? Various ways! zUse Rational Developer for i suite (RDi) zUse Rational Developer for p suite (RDp) zUse any other editor of choice based on Eclipse frameworks zUse the Program Development Manager - STRPDM command – green screen

15 Where do you get these editor applications? zPDM – comes with i/OS and is a standard command yStart PDM – STRPDM xThe STRPDM lets you choose to work with Libraries, Objects or Members. xOption 3 – Members - prompts you for library, source file and then presents a list of source members to work with xAllows you to create a new source member yPDM has a number of standard options to allow you to: x Edit (2), Copy (3), Delete (4), Display (5), Print (6), Rename (7), Compile (14), Call program ( C ) Demo PDM Here

16 Where do you get these editor applications - continued? zRational Developer (IBMi or P) yare Client-side applications yfrom IBM xBased on Open-source Eclipse project xAt least one license comes with OS – more cost $800ea approximately yInterface is robust xSource code management xSQL object creation xIBM and User-written plug-in support ySuperset of PDM xAllows you to create a new source member standard options to allow you to: xEdit, Copy, Delete, xDisplay, Print, Rename, Compile xmuch, much more Demo RDi Here Rationals RDi is lightweight Eclipse software Requires less machine Starts faster Easy to use

17 Elements of RPG language zRPG was always specification oriented zSpecifications are different TYPES of statements that are used for various functions: yH-spec – header/program-wide options yF-spec – definition of files yI-spec – used for file layouts yD-spec – definition of variables yC-spec – logic, math, file i/o actions yO-spec – definition of report fields C-Specs are entered in FIXED or FREE format FREE format is more readable and more popular

18 A very simple RPG program for your homework A simple three line program: *************************** * Program: HELLO * Date: todays date * Author: your name here * Function: Demonstrate a very simple RPG program * that tells the user it ran and then ends * * Mod History: * date initials change log * MM/DD/YYYY REF Added a second line of output *************************** // comment – show hello Dsply Hello to {your name here}; Dsply at KSC; // tell program to terminate at return *INLR = *ON; Banner Documentation using comment lines Lines of code in free format

19 How you write the code zYou have declarations of Variables and then you have Code. Each has a format. zPDM and WDSC KNOW these formats yEditors offer fill-in-blanks entry – press F4 yEditors offer context sensitive help (press F1) zFast – Accurate – Easy ySome declarations are still FIXED format but with next version, they will be FREE format too, like the procedural code.

20 Homework for next week or the following week (lab dependant) zLocate RPG Reference manual PDF on web for ILE RPG 6.1 or 7.1 zGet your account established on IBMi Server zCreate your first program like that pictured on slide 18 above yGet familiar with PDM and SEU commands zWrite the program free format RPG zCompile the program zRun the program