Advanced RPG Chapter 8 Interactive Applicatons. Interactive Applications  Batch Processing: Program is run without human intervention or control.  Interactive.

Slides:



Advertisements
Similar presentations
Requisitions RX Document Advantage Financial System.
Advertisements

©Centrepoint Management Services Ltd, 2007 Introducing the VIEWpoint Videotex System.
User Interface Design.
Main Menu F3 Exit = Press F3 to exit this screen. Commonly Use Keys: F4 Prompt = Position cursor in front of ‘?’ location and press F4 to display a list.
CL programming (with Display Files). Review Display Files Constants Input/Output fields Attributes Activating Function keys.
1 of : Multi-Currency Payments / DA0813 Last updated: Project Walkthrough: Multi-Currency Payments Multi-Currency Payments.
Page 1 of 31 To the Search Activities Online Training Course The Search Activities functionality in Assignments enables you to find existing activities.
Accounts Payable Enhancement An Enhancement For iSeries 400 DMAS from  Copyright I/O International, 2006, 2008 Skip Intro.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Vendor Payment Terms User Friendly Maintenance 
EDSM II Training. EDSM II EDSM II (Enhanced Digital Select Module) is a hand held program module used to program Atlas laundry dispensers –Recommended.
VBA Modules, Functions, Variables, and Constants
Using ITAMS as a Supervisor or ITAMS Approver Login to ITAMS as usual, at: Enter your User Identification Number (Same as your.
CICS Basic Commands COBOL programming statements.
Guide To UNIX Using Linux Third Edition
Understanding SAS Data Step Processing Alan C. Elliott stattutorials.com.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
BLC Training for Instructors Presented By: Banner Health Learning & Development Team.
will appear. Encode the User Name and Password, then click OK or
Financial Information System Running Reports in FIS.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
CSCI 1730 January 17 th, 2012 © by Pearson Education, Inc. All Rights Reserved.
Visual Basic Chapter 1 Mr. Wangler.
Advanced File Processing
Advanced Shell Programming. 2 Objectives Use techniques to ensure a script is employing the correct shell Set the default shell Configure Bash login and.
FAS New Features Martha Pluemer 2012 User Conference.
4-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)
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Getting Started Chapter 2 Presentation © Copyright 2002, Bryan Meyers
1 Chapter 4. To familiarize you with methods used to 1. Access input and output files 2. Read data from an input file 3. Perform simple move operations.
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
1 Team Leader TKS Job Aid. 2 Viewing the On-line Presentation If you are viewing this presentation via Internet Explorer for best results resize the “Notes”
Chapter 13 Sequential File Processing. Master Files Set of files used to store companies data in areas like payroll, inventory Usually processed by batch.
FlexGen Trustee Review Class In this session we will review dashboard receipting, troubleshooting day end issues, pitfalls of assessment changes, adding.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Presentation © Copyright 2002, Bryan Meyers Externally Described Files Chapter 6.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Attendance Training Presented By: MIS Department.
Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command to search for.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
CUG Request from 2010 and 2011 User Group Meetings Cortex User Group Meeting Portland, OR – 2012.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Indexed and Relative File Processing
Sequential Files Chapter 13. Master Files Set of files used to store companies data in areas like payroll, inventory Set of files used to store companies.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Welcome to RPG544. Bit about Cindy Administrative Stuff Standards Due Dates Web Page.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Introduction Basics.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Chapter 9: Advanced SQL and PL/SQL Guide to Oracle 10g.
©Colin Jamison 2004 Shell scripting in Linux Colin Jamison.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS Essentials - Elliott & Woodward1.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
IBM AS/400 RPG IV Programmer Thousands of IT Professionals before you have already passed their certification exams using the IBM
13- 1 Chapter 13.  Overview of Sequential File Processing  Sequential File Updating - Creating a New Master File  Validity Checking in Update Procedures.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
V6R1 – RPG enhancements THREAD(*CONCURRENT) Ability to define a main procedure which does not use the RPG cycle Files defined in subprocedures Qualified.
PestPac Software. Leads The Leads Module allows you to track all of your pending sales for your company from the first contact to the close. By the end.
1 Week # 4 Introduction to PDM PDM is a workbench environment that lets programmers and system operators navigate the three levels of the AS/400’s object-based.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
DAY 20: ACCESS CHAPTERS 5, 6, 7 Larry Reaves October 28,
Inside Module 10 Editing TurboIMAGE Datasets Page
Guide To UNIX Using Linux Third Edition
JavaScript: Introduction to Scripting
Display Files Week 4.
IBC233 Lecture 3 Updated Fall 2011
CL programming (with Display Files)
Presentation transcript:

Advanced RPG Chapter 8 Interactive Applicatons

Interactive Applications  Batch Processing: Program is run without human intervention or control.  Interactive Processing: User driven  Display files are needed for interaction.  Screen Design Aid (SDA): Graphical utility that will generate DDS source code.

Screen Design Aid  You can have multiple record formats per DDS member.

Screen Design Aid Section Inquiry Type value, then Enter. Section number.. ____________ F3=Exit

Screen Design Aid Section Information Section number Course BIS350 Instructor Johnson Room Meets on days......MWF Starting Time :30 Enrollment Press Enter to Continue F3=Exit F12=Cancel

Screen Design Aid AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions ********** Beginning of data ************************************ A REF(SECTIONS) A INDARA A R SECT1 A CA03(03 'F3=EXIT') A 1 28'SECTION INQUIRY' A 3 2'TYPE VALUE, THEN ENTER.' A 5 5'SECTION NUMBER..' A SECTION 5A I 5 24 A 23 2'F3=EXIT'

Screen Design Aid AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions A R SECT2 A CA03(03 'F3=EXIT') A CA03(12 'F12=CANCEL') A 1 10'SECTION INFORMATION' A 3 2'SECTION NUMBER...' A SECTNO R O 3 29 A 3 2'COURSE ' A COURSE R O 4 29 A 5 2'INSTR ' A INSTR R O 5 29 A 6 2'ROOM ' A ROOM R O 6 29 A 7 2'MEETS ON DAYS...' A DAYS R O 7 29 A 8 2'STARTING TIME...' A BEGTIME R O 8 29 A 9 2'ENROLLMENT.....‘ A ENROLL R O 9 29 A 21 2'PRESS ENTER TO CONTINUE' A 23 2'F3=EXIT' A 23 11'F12=CANCEL'

Screen Design Aid  CA03(03 ‘F3=EXIT’)  CA: Command Attention, enables the function key of F3. Returns control to RPG program without passing user input values.  When F3 is pressed by the user, indicator 03 is turned on.  ‘F3=EXIT’: Programmer comment.

Screen Design Aid  CF03(03 ‘F3=EXIT’)  CF: Command Function  Functions the same as CA03 except that the values the user has inputted are passed back to the RPG program.  CA12(12 ‘F12=Cancel’)  Generally used to move the user back a screen.

Screen Design Aid  Display files are defined in File Specs just like any other file.  Full Procedural  Externally defined  Key is not relevant (position 34 blank)  type (position 17) is C for combined file, supports both input and output but as independent operations.  Optional keyword INDDS: Stores indicators passed to and from display file in data structure named Fkeys.

Screen Design Aid  Interactive programs are prone to “spaghetti code”.  flow of control is not straight forward  User can press F3 to Exit or F12 to Cancel  Causes programmer to back up, repeat or exit early.

Screen Design Aid WHILE user wants to continue (no Exit) Display first screen Obtain user’s response to the screen IF user wants to continue (no exit) Random read section file to get section information IF record found Display second screen Obtain user’s response ENDIF ENDWHILE

Screen Design Aid WHILE user wants to continue (no Exit) (*IN03 = *OFF) Display first screen (EXFMT Sect1) Obtain user’s response to the screen IF user wants to continue (no exit) (IF *IN03 = *OFF) Random read section file to get section information (Section CHAIN Sections) IF record found (IF %FOUND(Sections) Display second screen (EXFMT Sect2) Obtain user’s response ENDIF ENDWHILE

Screen Design Aid  Allowable functions for I/O  WRITE: Displays a screen and returns control to program without waiting for user input.  READ: Sends control to currently displayed screen waits for end of user input (usually triggered by Enter key)  EXFMT: Combines WRITE/READ, first writes a record to the screen and then waits for user input to the screen, when signaled it returns control to RPG program. USED MOST OFTEN!

Screen Design Aid  RPG IV gets away from referencing indicators  Must specify INDDS keyword in F Spec.  Indicator Data Structure in DDS (INDARA)  Define data structure in D Spec to contain indicators.  Only have to define the ones you are using. D FKeysDS99 D Exit 3 3N D Cancel 12 12N

Screen Design Aid CL0N01Factor Opcode&ExtExtended-factor2+++ C DOW NOT Exit C EXFMT Sect1 C IF NOT Exit C Section CHAIN Sections C IF %FOUND(Sections) C EXFMT Sect2 C ENDIF C ENDDO C EVAL *INLR = *ON C RETURN

DDS Keywords  File Level:  Must be on first line of DDS, before Record Format  REF: reference another file for specifications  INDARA: organize indicators into 99-byte data structure  MSGLOC: specifies message line for error messages (default is last line, 24)  File or Record Level:  CA or CF: coded at file level they will apply to all record formats within the file  PRINT: enables Print Key for user screen printing.  VLDCMDKEY: turns on indicator when users presses any valid command key

DDS Keywords  Record Level:  Appear on line record is named or lines immediately following, prior to field names.  BLINK: causes cursor to blink  OVERLAY: Display record without clearing previous record display.

DDS Keywords  Field Level:  Apply only to specific field it is associated.  EDTCDE, EDTWRD: format numeric output  DSPATR: Display Attribute, determines appearance. (BL – blinking field, UL – underline)  DSPATR(BL UL)

DDS Keywords  Field Level: Data Validation  VALUES: Specify exact values allowed.  VALUES(value1 value2...)  RANGE: Specify range of values allowed.  RANGE(low-value high-value)  COMP: Relational comparison with inputted value (EQ,NE,GT,NG,LT,NL,GE,LE):  COMP(GT 100)  CHECK: Validity checking (ME, MF, AB)  CHECK(Validity code)  ERRMSG:  TIME and DATE

DDS Keywords  Conditioning Indicators:  Field Keyword will only apply if conditioning indicator is turned on by the RPG program.

AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions ********** Beginning of data ************************************* A REF(SECTIONS) A PRINT A INDARA A R SECT1 A BLINK A CA03(03 'F3=EXIT') A 1 28'SECTION INQUIRY' A 3 2'TYPE VALUE, THEN ENTER.' A 5 5'SECTION NUMBER..' A SECTION 5A I 5 24 A DSPATR(UL) A DSPATR(HI) A ERRMSG('SECTION NOT FOUND‘ 90) A 23 2'F3=EXIT' A A R SECT2 A CA03(03 'F3=EXIT') A CA03(12 'F12=CANCEL') A 1 10'SECTION INFORMATION' A 3 2'SECTION NUMBER...' A SECTNO R O 3 29 A 3 2'COURSE ' A COURSE R O 4 29 A 5 2'INSTR ' A INSTR R O 5 29 A 6 2'ROOM ' A ROOM R O 6 29EDTCDE(Z) A 7 2'MEETS ON DAYS...' A DAYS R O 7 29 A 8 2'STARTING TIME...' A BEGTIME R O 8 29EDTWRD(' 0: ') A 9 2'ENROLLMENT.....' A ENROLL R O 9 29EDTCDE(3) A 21 2'PRESS ENTER TO CONTINUE' A 23 2'F3=EXIT' A 23 11'F12=CANCEL'

Revised RPG code DFKeys DS D Exit 3 3N D Cancel 12 12N D SectNotFnd 90 90N C DOW NOT Exit C EXFMT Sect1 C IF NOT Exit C Section CHAIN Sections C EVAL SectNotFnd = NOT %FOUND(Sections) C IF %FOUND(Sections) C EXFMT Sect2 C ENDIF C ENDDO

Interactive File Maintenance  Adding, changing or deleting records instantly.  Must verify data validity  Three methods of safeguarding  Validation Keywords in PF description  Validation Keywords in Display file description  Validating values in program