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.

Slides:



Advertisements
Similar presentations
Requisitions RX Document Advantage Financial System.
Advertisements

Workbench Training Learning to use the Workbench. Department of Public Welfare Information Systems Application Development and Delivery.
Lectures on File Management
Lesson 12 Getting Started with Excel Essentials
Module R2 CS450. Next Week R1 is due next Friday ▫Bring manuals in a binder - make sure to have a cover page with group number, module, and date. You.
BAVWEB 2012 Complete Manual Prerequisite: BAV theory, experience with any of the older tools.
COBOL Considerations Identification Division. Environment Division
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
CICS Basic Commands COBOL programming statements.
CICS BMS Maps Concepts and commands.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Intro to Program Development
CICS-Dbg1 Testing and Debugging Programmers responsibility that program works correctly! Can write program incrementally You must test anything that the.
Graphical Tree-Based Scientific Calculator: CalcuWiz Will Ryan Christian Braunlich.
DB2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/DB01/003 Version No:2.0a Session Plan SPUFI Hands On Introduction to Embedded SQL DCLGEN.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Word Processing basics
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
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.
Key Applications Module Lesson 16 — Excel Essentials Computer Literacy BASICS.
Mastering the AS/400, Third Edition, author Jerry Fottral 1 Week 2 The System The AS/400 is a multi-user, multi-tasking system -- a system on which many.
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.
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.
PHP meets MySQL.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
10/8/2015© Jeff Offutt, Menu Design Guidelines Jeff Offutt SWE 432 Design and Implementation of Software for.
CICS-Int1 Introduction to On-Line BATCH – Transactions are accumulated into groups (batches) before processing. ON-LINE – Interactive Transactions entered.
CMSC 104, Section 301, Fall Lecture 06, 9/18/02 Algorithms, Part 3 of 3 Topics Disk Quota Exceeded. Using Pine. More Algorithms Reading Read.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
Key Applications Module Lesson 21 — Access Essentials
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.
Indexed and Relative File Processing
IBM MAINFRAMES CICS Training Class-01.
CPSC3111/CISM3111 COBOL Structured COBOL Programming Text: murach’s structured COBOL Authors: Murach, Prince, Menendez.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
Application Program Design Day3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Basic CICS programming –Structure.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
1 Lesson 12 Getting Started with Excel Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
Chapter Three The UNIX Editors.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
A Guide to SQL, Eighth Edition Chapter Eight SQL Functions and Procedures.
AS Level ICT Data entry: Creating validation checks.
Office of Housing Choice Voucher Program Voucher Management System – VMS Version Released October 2011.
Staff Module and Summary of Changes 1. Icon Changes: Page 3 Signing In and Password/Pin Changes: Page 4 Logging Out: Page 8 Staff Module Changes: Page.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Chapter 9: Completing the Basics. In this chapter, you will learn about: – Exception handling – Exceptions and file checking – The string class – Character.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 18 Getting Started with Excel Essentials 1 Morrison / Wells / Ruffolo.
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.
A FIRST BOOK OF C++ CHAPTER 14 THE STRING CLASS AND EXCEPTION HANDLING.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Sequential Processing to Update a File Please use speaker notes for additional information!
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
ASP.NET Programming with C# and SQL Server First Edition
Development Environment
User-Written Functions
Guide To UNIX Using Linux Third Edition
Multi-host Internet Access Portal (MIAP) Enhancement Guide
DB2.
Fundamentals of Data Representation
Computing in COBOL: The Arithmetic Verbs and Intrinsic Functions
Using screens and adding two numbers - addda.cbl
Presentation transcript:

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 Cursor Positioning  CURSOR(nnn) where nnn is position on screen  Displacement from start of the screen  ( Row – 1 ) * 80 + ( Column – 1 )  0 is Row 1, Column 1  1919 is Row 24, Column 80 (24 by 80 Screen)  Changes in screen require changes to program (Not used much - too complex!)

CICS-Prg2 Terminal Handling (More) CURSOR Positioning (in SEND MAP) Symbolic Cursor Positioning (Preferred!)  CURSOR – with no position parameter!  Specify the FIELD where the CURSOR goes  Place –1 in the LENGTH Attribute of the field where the cursor is to be placed  ‘FIELD NAME’ with ‘L’ appended is LENGTH  If more than one – FIRST position is used.  BINARY HALFWORD - PIC S9(04) COMP.

CICS-Prg3 Terminal Handling (More yet) Determining the position of CURSOR when the user types an AID key. EIBCPOSN – in EIB Block (binary halfword) READ only-Available before RECEIVE MAP Can be used to determine user selection instead of requiring user to enter character

CICS-Prg4 Attribute Modification Symbolic Map includes Attribute byte ‘Field Name’ with ‘A’ appended Cryptic ‘bit’ codes and names used Copy library supplied by IBM (Horrible) Most shops have their own copy book We do have ‘extended attributes’!

CICS-Prg5 Editing Input Data All data entered should be validated Required data must be present Numeric data needs to be ‘normalized’ Alpha data should not be spaces Meaningful error messages displayed Very tedious coding required! Do checking from ‘bottom to top’!

CICS-Prg6 Misc CICS Commands EXEC CICS SEND TEXT FROM(data-area) [ LENGTH(data-value) ] [ ERASE ] [ FREEKB] END-EXEC NOTE: No FREEKB user must hit RESET!

CICS-Prg7 Misc CICS Commands EXEC CICS HANDLE AID option(procedure name) … END-EXEC

CICS-Prg8 Misc CICS Commands HANDLE AID Options: PA1-PA3Program Attention Keys PF1-PF24Program Function Keys ENTERThe ENTER Key CLEARThe CLEAR Key ANYKEYAny key not Specified (Except the ENTER key)

CICS-Prg9 Handle AID Example (Old) EXEC CICS HANDLE AIDPF3(900-MENU) CLEAR(850-CLEAR) ENTER(700-ENTER) ANYKEY(750-ERROR) END-EXEC NOTE: HANDLE AID sets up RECEIVE MAP! Not executed when encountered! In OLD Progs.

CICS-Prg10 Error Processing There are over 70 CICS error Conditions Mercifully only a few are handled TWO Methods of handling exceptions: HANDLE CONDITION (Old Method)  Similar in function to HANDLE AID RESPONSE Code checking  Allows cleaner program structure

CICS-Prg11 Strange Exception - MAPFAIL MAPFAIL Condition Raised by RECEIVE MAP with no data  User entered no data but pressed AID key  User pressed CLEAR key or PA key Simplest to PREVENT it from occurring  Check EIBAID to see what key was pressed  Don’t issue RECEIVE MAP if PA or CLEAR hit  Include ‘DUMMY’ field with MDT set ON

CICS-Prg12 HANDLE CONDITION (Old!) EXEC CICS HANDLE CONDITION condition(procedure-name) … up to 16 per statement END-EXEC

CICS-Prg13 HANDLE CONDITION Common CONDITIONS DUPRECRecord already exists MAPFAILNo data sent by user NOSPACENo space left in file NOTOPENData set not OPEN NOTFNDRecord not in file PGMIDERRProgram not in PPT ERRORALL conditions not coded

CICS-Prg14 HANDLE CONDITION Example EXEC CICS HANDLE CONDITION MAPFAIL(500-NO-DATA) DUPREC(600-DUPLICATE) NOTOPEN END-EXEC NOTE: Condition by itself will nullify it!

CICS-Prg15 HANDLE CONDITION (Notes) Not an executable command Establishes paragraph to correct error Can issue multiple times Last one executed is in effect Causes ‘GO TO’ to paragraph named Done BEFORE CICS Command executed OLD method of coding – AVOID!

CICS-Prg16 RESPONSE CHECKING (NEW!) ADD ‘RESP’ option to CICS Command Define binary fullword PIC S9(8) COMP Name that field in each RESP option COPY of EIBRESP from EIB EIBRESP2 (RESP2) also available Not many CICS Commands use it Seldom needed as RESP is usually enough

CICS-Prg17 USE General ERROR Handling Most good shops have a standard error handling method If not, use sample linkage on Page 255 Sample program is on Page 257 Called whenever a condition is not handled in the program Displays error to user and terminates

CICS-Prg18 LINKAGE SECTION Used to access data left by previous execution of a program Data should be moved to your W/S! Each execution starts with initial W/S Define COMMAREA in Working-Storage DEFINE DFHCOMMAREA in Linkage RETURN references Working-Storage

CICS-Prg19 Executive Interface Block EIB definition added by CICS Compiler In Linkage Section after DFHCOMMAREA Contains several useful fields EIBCALEN, EIBAID, EIBCPOSN, EIBDATE, EIBTIME, EIBTRNID, EIBTRMID, EIBRSRCE Most kept current by CICS (Page 258) You can update a few of them-EIBTRNID

CICS-Prg20 EIB Useful Fields EIBCALENLength of COMMAREA EIBAIDCurrent AID Key pressed EIBCPOSNPosition of CURSOR EIBDATETask DATE (00YYDDD) EIBTIMETask Time (0HHMMSS) EIBTRNIDTransaction of Task EIBTRMIDTerminal ID of Task EIBRSRCERecently used Resource Name EIBDSRecently accessed Data Set

CICS-Prg21 DEBUGGING EIB FIELDS EIBFNLast CICS Command EIBRESPCompletion Status EIBRESP2More Completion Status EIBRCODEResponse Code (OLD) EIBRSRCERecent Resource Name MAPMap Name PRG CTLProgram Name FILE CTLData Set Name

CICS-Prg22 Access to Heavy Stuff CWACommon Work Area Installation defined (Sometimes handy) CSACommon System Area TWATransaction Work Area TCTUATerminal Control Table User Area Must establish Addressability if needed

CICS-Prg23 Infrequently Needed Stuff EXEC CICS ADDRESS CWA(pointer) [ CSA(pointer) ] [ TWA(pointer) ] [ TCTUA(pointer) ] END-EXEC

CICS-Prg24 Infrequently Needed Stuff EXEC CICS ADDRESS CWA(ADDRESS OF CWA) END-EXEC NOTE: Holdovers from MACRO-Level CICS Seldom needed any more!