Intro to Program Development

Slides:



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

CPIT 102 CPIT 102 CHAPTER 1 COLLABORATING on DOCUMENTS.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
COBOL Considerations Identification Division. Environment Division
Chapter 3: System design. System design Creating system components Three primary components – designing data structure and content – create software –
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Screen Display Module M15.2 Sections 9.5, 13.1, 13.2.
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
CICS Basic Commands COBOL programming statements.
CICS BMS Maps Concepts and commands.
CICS-Dbg1 Testing and Debugging Programmers responsibility that program works correctly! Can write program incrementally You must test anything that the.
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
Guide To UNIX Using Linux Third Edition
Chapter 6: An Introduction to System Software and Virtual Machines
1 Introduction to CICS. 2 Contents Introduction History Compatibility Typical Usage Components of CICS CICS Structure – Domains CICS Management Functions.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Ogden Air Logistics Center. Purpose of Excel2FV Many agencies produce point lists of different data (target lists, force locations, etc.) in either Excel.
Word Processing basics
Chapter 2 Software Tools and Assembly Language Syntax.
© 2002 ComputerPREP, Inc. All rights reserved. Word 2000: Working with Long Documents.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Structured COBOL Programming, Stern & Stern, 9th edition
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)
CICS-Prg1 Terminal Handling CURSOR Positioning (in SEND MAP) IC option in DFHMDF Macro (ATTRB Parm)  If more than one – LAST position is used. DIRECT.
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)
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
CICS – Mainframe (LC) 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Course Schedule Day1 - Introduction to CICS Day2.
Chapter To familiarize you with  Why COBOL is a popular business-oriented language.  Programming practices and techniques  History of COBOL.
Basic Mapping Support Day2 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Introduction to BMS –Screen Layout.
1 © 2000 John Urrutia. All rights reserved. Qbasic Constructing Qbasic Programs.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
CICS-Int1 Introduction to On-Line BATCH – Transactions are accumulated into groups (batches) before processing. ON-LINE – Interactive Transactions entered.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
GDT Development Tutorial. GDT Development Tutorial Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas,
In the next step you will enter some data records into the table. This can be done easily using the ‘Data Browser’. The data browser can be accessed via.
1 Interactive vs Batch Programs Cobol suited for developing both types of programs Interactive programs Accept input data from keyboard Input data processed.
CS CS Computing for Business Instructor:David Tucker GTA:Batul Mirza.
Linux Operations and Administration
Programming Fundamentals. Today’s Lecture Why do we need Object Oriented Language C++ and C Basics of a typical C++ Environment Basic Program Construction.
IBM MAINFRAMES CICS Training Class-01.
1 © 2002 John Urrutia. All rights reserved. Qbasic Constructing Qbasic Programs.
CPSC3111/CISM3111 COBOL Structured COBOL Programming Text: murach’s structured COBOL Authors: Murach, Prince, Menendez.
Introduction Basics.
Application Program Design Day3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Basic CICS programming –Structure.
Chapter Three The UNIX Editors.
Submitted To: Rutvi sarang Submitted By: Kushal Bhagat.
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Chapter 10 Creating a Template for an Online Form Microsoft Word 2013.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
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 – 8 Software Tools.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Input/Output (I/O) Important OS function – control I/O
Key Ideas from day 1 slides
Guide To UNIX Using Linux Third Edition
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Designing and Debugging Batch and Interactive COBOL Programs
DB2.
An Introduction to Structured Program Design in COBOL
Structured COBOL Programming
CHAPTER 17 The Report Writer Module
Presentation transcript:

Intro to Program Development Develop complete program specs Design the program Create required CICS table entries Create the BMS mapset Code the program Compile and Test the program Document the program CICS-Dev

Program Specifications Usually “Up to You!” Program overview (Narrative) Screen layout for each map (usually 1) COPY members needed (if any) Editing rules, Decision Tables Files, DB/2 Tables read/updated CICS-Dev

Program Design Critical! Can save hours (days!) PSEUDO-CONVERSATIONAL (different!) Event Driven - Major Functions Processing Summary Details processing for each response Structure Chart, or ‘Table’ CICS-Dev

Create CICS Table Entries PCT = Program Control Table TRANS-ID assigned to Program PPT = Processing Program Table (2) COBOL Program Mapset - Assembler Program FCT = File Control Table FILE(s) used by Program Usually done by Systems Programmer CICS-Dev

Create the BMS Mapset Defines the MAP(s) used by program MAP provides for screen formatting MAPSET is group of screens (1 or more) Normally only one MAP per MAPSET Only three macro’s used to create MAP Usually a ‘Screen Generator’ is used CICS-Dev

Code the Program Uses standard COBOL code (almost!) Also uses CICS Commands To include a CICS Command: EXEC CICS CICS Command (with PARAMETERS) END-EXEC CICS-Dev

Compile Program Special CICS Pre-compiler CICS command-level translator Converts CICS commands to COBOL Creates listing with possible errors Changes CICS lines to comments Compiled by standard COBOL Compiler Another listing with possible errors CICS-Dev

Test Program Create test plan (Possible inputs) Sign on to CICS (CESN) Verify MAP is working (with CECI) Test all conditions of program (CEDF) NEWCOPY if changes made (CEMT) Sign off of CICS (CESF) CICS-Dev

Document Program Specifications and Listing (Sometimes!) Every shop has set of ‘Standards’ Some shops require both: SYSTEM Documentation (for Maintenance) USER Guide (Instructions for use) ‘HELP’ screens sometimes used for user Should not be last step! CICS-Dev

Creating a BMS MAPSET 3270 is FIELD oriented display Screen divided into user defined fields Each field has CHARACTERISTICS Determined by ATTRIBUTE BYTES (First character of each field!) Displayed as a space, but NOT available CICS-Dev

Creating a BMS MAPSET Field starts at position after attribute Attribute Byte determines the fields characteristics Basic Attributes are: Protection – allows user to key data Intensity – normal or high Shift – numeric or alphanumeric CICS-Dev

Protection Attribute Protected – user can’t key data in field Unprotected – user allowed to key data Auto-Skip – cursor skips to next field Used to mark end of data entry field Cursor automatically moves to next field CICS-Dev

Intensity Attribute Normal – shown normal intensity Bright – shown in high intensity No-display – not shown (background) Used for password entry Also used to ‘hide’ data on screen CICS-Dev

Shift Attribute Alphanumeric – allows most characters Numeric – only numeric characters Not usually used – (CICS level error) Multiple periods can be entered – error Use Alpha and test in program! CICS-Dev

Attribute Byte Format 1 2 3 4 5 6 7 Bit Function Values 1 2 3 4 5 6 7 Bit Function Values 0-1 Depends on bits 2 - 7 See ATTR copylib 2-3 Protection and Shift 00 – Unprot alpha 01 – Unprot numeric 10 – Protected 11 – Protected skip 4-5 Intensity 00 – Normal 01 – Normal 10 – Bright 11 – No display 6 Reserved Must be 0 7 Modified Data Tag 0 – Field not modified 1 – Field was modified CICS-Dev

Extended Attributes Allow Extra Colors: Highlighting Validation Blue, Red, Pink, Green, Turquoise, Yellow and White Highlighting Blinking, Reverse Video, Underlining Validation Must fill, Must enter, Trigger Symbols Up to six alternate character sets CICS-Dev

More terminology PHYSICAL MAP – load module Result of Assembly Contains table of screen locations of data Also contains attributes of each field SYMBOLIC MAP – Copy library member Usually used in COBOL program You can create your own – if careful! CICS-Dev

Coding a BMS Mapset Only need two Assembler commands PRINT NOGEN (Not for AS400) END And three BMS MACRO Instructions DFHMSD – Map Set Definition DFHMDI – Map Definition DFHMDF – Field (Attribute byte) Definition CICS-Dev

PRINT NOGEN and END PRINT NOGEN should be the first line Assembler will NOT print generated code If omitted, you get much longer listing! END – must be the last line of MAPSET Informs Assembler – no more lines CICS-Dev

DFHMSD Macro VISnqq DFHMSD TYPE=&SYSPARM, X LANG=COBOL, X MODE= INOUT, X TERM=3270-2, X CTRL=FREEKB, X STORAGE=AUTO, X DSATTS=(COLOR,HILIGHT), X MAPATTS=(COLOR,HIGHLIGHT), X TIOAPFX=YES CICS-Dev

DFHMDI Macro VIDSnM1 DFHMDI SIZE=(24,80), X LINE=1, X COLUMN=1 CICS-Dev

DFHMDF Macro FLDNM DFHMDF POS=(line,col), X LENGTH=nn, X ATTRB=(unPROT), X COLOR=BLUE, X INITIAL=‘init value’ CICS-Dev

ATTRB Parameter BRT High intensity display NORM Normal intensity DRK Not displayed (Hidden) PROT Protected – no data keyed UNPROT Data may be keyed in IC Initial cursor position FSET MDT set ON for field CICS-Dev

The Symbolic Map Copy member created by Assembly Use COPY statement in COBOL Maximum of 7 character field names MAPGEN adds the 8th (last) character Fine for Assembler–Marginal in COBOL You can code your own – if careful! CICS-Dev

Symbolic Map Suffix List I The INPUT data field O The OUTPUT data field (Same loc I) L Binary Halfword-S9(4) COMP Nbr chars data returned in input field F Char w/’80’ if field was cleared A Char w/attrb for output (Same loc F) C/H Used for Color and/or Highlighting CICS-Dev

Pseudo-Conversational An on-line program that actually ended while appearing to wait for a response. Single-user systems are ‘conversational’ System waits for operator to enter data Single user system - nothing else to do Multi-user system can’t waste the time 3270 screen handles operator activity CICS-Dev

Pseudo-Conversational Conversational program remains in storage during entire interaction. Pseudo-conversational program only in storage for a few seconds each action. Many more users can be processed Storage used more efficiently Minor complication to programs! CICS-Dev

Pseudo-Conversational Terminal handles operator entry Attention Key signals CICS screen ready Enter, PF, PA, or Clear Key - (Event) CICS reloads program (Virtual Storage) Program start at BEGINNING every time You must keep up with where user is User unaware that program restarted CICS-Dev

Sample CICS Scenario Transaction ID Entered Looked up in PCT - Program loaded Program displays initial map and ends User enters data and hits ‘Enter’ key Program reloaded (from CICS storage) Receives data from screen Processes data Sends response back to screen Returns to CICS CICS-Dev

CICS Input/Output CICS handles all I/O Treat screen as simple file (one record) Can Read Screen – RECEIVE MAP Can Write Screen – SEND MAP Can Return to CICS with ID of Program to execute next time user keys AID key Return without TRANS-ID, Exits to CICS CICS-Dev