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.

Slides:



Advertisements
Similar presentations
User Query Control An Enhancement For AS/400 Query On The IBM iSeries from  Copyright I/O International, 2005 Skip Intro.
Advertisements

August 29, Accessing the iSeries and Some Commands.
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.
1 CICS (Customer Information Control System). 2 Table of Contents Introduction to CICS Basic Mapping Support Program Control File Processing Error Handling.
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
COBOL Considerations Identification Division. Environment Division
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13 Introduction to SQL Programming Techniques.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Chapter 3: System design. System design Creating system components Three primary components – designing data structure and content – create software –
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
University of Southern California Enterprise Wide Information Systems Getting Started in R/3 Instructor: Richard W. Vawter.
CICS Basic Commands COBOL programming statements.
CICS BMS Maps Concepts and commands.
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.
Chapter 6: An Introduction to System Software and Virtual Machines
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
1 Introduction to CICS. 2 Contents Introduction History Compatibility Typical Usage Components of CICS CICS Structure – Domains CICS Management Functions.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
RDz Workbench – BMS Map Editor
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
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.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
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.
Topics Introduction Hardware and Software How Computers Store Data
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
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.
A Simple Two-Pass Assembler
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.
Keyboarding Vocabulary Key Computer Terms. Click To rapidly press and release the mouse button To rapidly press and release the mouse button.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Company Confidential 1 This presentation is solely for the use of Patni personnel. No part of it may be circulated, quoted, or reproduced for distribution.
Control Operations Day 5. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Objectives Task Control –ENQUEUE/DEQUEUE –SUSPEND.
CICS-Int1 Introduction to On-Line BATCH – Transactions are accumulated into groups (batches) before processing. ON-LINE – Interactive Transactions entered.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
DB2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/DB01/003 Version No:2.0a Session Plan Introduction to Concurrency Control Different types.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 4: Working with data sets.
Fundamentals of GUI Programming. Objectives: At the end of the session, you should be able to: describe the guidelines that are used for creating user-friendly.
IBM MAINFRAMES CICS Training Class-01.
Lecture 21 Lecture 2: Using TSO and ISPF Tuesday, January 20, 2009.
An Introduction to Programming with C++ Sixth Edition Chapter 14 Sequential Access Files.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
Asttraining.com Scan Procedures for Ford EEC-V OBD II Systems.
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.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 11 Understanding transaction managers on z/OS.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Introduction to BASIC Programming Ken R. Hall, Ph.D. Ken R. Hall Consultants Portland, Oregon.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
1 CCNA Semester 2 Introduction to Routers Unit 2 Review JEOPARDY.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
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.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
C Programming Day 2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/LA07/003 Version No. 1.0 Union –mechanism to create user defined data types.
LonWorks Introduction Hwayoung Chae.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe.
Item and Lot Attribute Orientation Essentials
Chapter 8: Introduction to High-Level Language Programming
DB2.
Topics Introduction Hardware and Software How Computers Store Data
Programming in COBOL-85 For IBM Mainframe System 390
A Simple Two-Pass Assembler
Presentation transcript:

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 –Physical map and Symbolic map –Map and Mapset Creating a simple map –Map definition macros –Modified data tag and other attributes –Handling program attention keys Programming to use maps –SEND MAP command –RECEIVE MAP command –Data validation –Changing the attributes dynamically

3 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 BMS – Basic Mapping Support An interface between CICS programs and the terminal devices In BMS, the design and format of the application can be separate from the logic BMS finds the device information from the terminal rather than the application program

4 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Formatted Screens Screens with fields in proper positions with proper attributes. Require Buffer Control Characters (BCCs) to be sent along with data. The mixture of BCCs and TEXT is called as Native Mode Data Stream (NMDS) which depends on the protocol of the terminal being used.

5 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 SCR1 MAIN MENU DATE: 04/03/98 TIME : 12:14:16 1. EMPLOYEE RECORD MAINTENANCE 2. EMPLOYEE DETAILS BROWSE 3. EXIT SELECTION : - (1/2/3) Your Choice Please F1 - HelpF3 - ExitENTER - Process Formatted Screen - an Example

6 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Physical Maps Physical map contains the display format for the map, for a given terminal, available as a load library member. –Length and location –Attributes –Constants –Device characteristics BMS macro coding AssemblyLinkedit Load module LOADLIB To be used by CICS

7 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Symbolic Maps Symbolic map contains all variable data which is copied into programs working storage section, available as copy library member. BMS macro coding Assembly Symbolic map generation COPYLIB Copied (COPY) into CICS appl. program

8 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 MAP & MAPSET MAP – is a single screen format MAPSET –is a collection of maps link-edited together to create a load module. –should have a PPT entry. Naming –1 to 7 chars of generic name for maps and mapsets –1 char added by CICS.

9 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 BMS Assembly Language Program BMS map is a program written in Assembly Language to manage screens. The BMS Macros are –DFHMSD (Mapset definition) –DFHMDI (Map definition) –DFHMDF (Map Field definition)

10 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 DFHMSD Parameters TYPE=DSECT/MAP/&&SYSPARM/FINAL MODE=IN/OUT/INOUT LANG=ASM/COBOL/PL1 STORAGE=AUTO/BASE=name CTRL=(PRINT,FREEKB,ALARM,FRSET) TERM=terminal type,SUFFIX=n TIOAPFX=YES/NO MAPATTS=(COLOR,HIGHLIGHT, ) DSATTS=(COLOR,HIGHLIGHT, ) –COLOR=DEFAULT/colour –HIGHLIGHT=OFF/BLINK/REVERSE/UNDERLINE

11 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Example of DFHMSD DFHMSD TYPE=&&SYSPARM, X CTRL=(FREEKB,FRSET), X LANG=COBOL, X STORAGE=AUTO, X TIOAPFX=YES, X MODE=INOUT, X TERM=3270 DFHMSD TYPE=FINAL END

12 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 DFHMDI Parameters SIZE=(LINE,COLUMN) LINE=line-number COLUMN=column-number JUSTIFY=left/right CTRL=(PRINT,FREEKB,ALARM,FRSET) TIOAPFX=YES/NO MAPATTS=(COLOR,HIGHLIGHT, ) DSATTS=(COLOR,HIGHLIGHT, ) –COLOR=DEFAULT/colour –HIGHLIGHT=OFF/BLINK/REVERSE/UNDERLINE

13 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Example of DFHMDI MAPNAME DFHMDI SIZE=(24,80),X LINE=01,X COLUMN=01,X CTRL=(FREEKB,FRSET)

14 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 DFHMDF Parameters POS=(line,column) LENGTH=number INITIAL=‘text’ JUSTIFY=(LEFT/RIGHT,BLANK/ZERO) ATTRB=(ASKIP/PROT/UNPROT, NUM, BRT/NORM/ DRK, IC, FSET) COLOR=DEFAULT/colour HIGHLIGHT=OFF/BLINK/REVERSE/UNDERLINE PICIN=‘value’ PICOUT=‘value’ OCCURS=n

15 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Example of DFHMDF DFHMDF POS=(01,01), LENGTH=4, X INITIAL=‘SCR1’, X ATTRB=(PROT,NORM) DATEM DFHMDF POS=(01,70), LENGTH=08, X ATTRB=(PROT,NORM) DFHMDF POS=(01,79), LENGTH=1, X ATTRB=ASKIP

16 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 MDT - Modified Data Tag It is used to know whether the field is modified by the user or not.The field is only receivable if it has been modified.

17 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 FORMAT OF SYMBOLIC MAP A 12-byte TIOA (Terminal Input/Output Area) prefix. The mapnames are suffixed with ‘I’ and ‘O’ When performing INPUT functions fields suffixed with ‘L’, ’F’ and ‘I’ are meaningful When performing OUTPUT functions fields suffixed with ‘A’, and ‘O’ are meaningful

18 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Using OCCURS clause It is a tedious task to define different field names in a listing which are same and access them. To overcome this you use the OCCURS clause in the field and you can address the field by using the subscript.

19 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 EXEC CICS SEND MAP(‘map name’) MAP(‘map name’) [MAPSET(‘mapset name’)] [MAPSET(‘mapset name’)] [FROM(data-area)] [FROM(data-area)] [LENGTH(data_value)] [LENGTH(data_value)] [DATAONLY] [DATAONLY] [MAPONLY] [MAPONLY] [CURSOR] [CURSOR] [ERASE/ERASEAUP] [ERASE/ERASEAUP] [FREEKB] [FREEKB] [FRSET] [FRSET]END-EXEC SEND MAP

20 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Ex. EXEC CICS SEND MAP(‘EMPMAP’) MAP(‘EMPMAP’) MAPSET(‘EMPLIST’) MAPSET(‘EMPLIST’) ERASE ERASE FREEKB FREEKB END-EXEC END-EXEC SEND MAP

21 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 EXEC CICS RECEIVE MAP(‘map name’) MAP(‘map name’) [MAPSET(‘mapset name’)] [MAPSET(‘mapset name’)] [INTO(data-area)] [INTO(data-area)] [FROM(data-area)] [FROM(data-area)] [LENGTH(data_value)] [LENGTH(data_value)]END-EXEC RECEIVE MAP

22 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Ex. EXEC CICS RECEIVE MAP(‘EMPMAP’) MAP(‘EMPMAP’) MAPSET(‘EMPLIST’)] MAPSET(‘EMPLIST’)] END-EXEC END-EXEC RECEIVE MAP

23 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Validate Fields Fields can be evaluated using the L, F or the I sub-fields The key pressed by the user is evaluated by using EIBAID CICS provides you with a pre-coded set which holds the symbolic values of attention identifier –COPY DFHAID (DFHENTER, DFHCLEAR, DFHPF1 etc)

24 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Dynamic Cursor positioning. Move -1 to the symbolic map variable suffixed with L. Send the map with a CURSOR option in SEND MAP.

25 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Dynamically changing attributes. COPY DFHATTR in your program. Choose the attribute from the list you want to use and move it to the symbolic field variable suffixed with ‘A’. You can also do it by copying DFHBMSCA having different options.

26 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 DFHBMSCA attribute values Variable Protection Intensity Modified Data Tag (FSET/FRSET) DFHBMUNP Unprotected Normal Off DFHBMUNN Numeric Normal Off DFHBMPRO Protected Normal Off DFHBMASK Autoskip Normal Off DFHBMBRY Unprotected Bright Off DFHPROTI Protected Bright Off DFHBMASB Autoskip Bright Off DFHBMDAR Unprotected Non-display Off DFHPROTN Protected Non-display Off DFHBMFSE Unprotected Normal On DFHUNNUM Numeric Normal On DFHBMPRF Protected Normal On DFHBMASF Autoskip Normal On DFHUNIMD Unprotected Bright On DFHUNINT Numeric Bright On DFHUNNOD Unprotected Non-display On DFHUNNON Numeric Non-display On

27 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Step 1: Open a tso session. Step 2: Create a new PDS. Step 3: Code the following mapset in a new member. Sample mapset Development

28 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Step 4: Assemble the mapset using the clist TRNGBMS. Step 5: Open a CICS Session. Step 6: Install the program using the command CEMT SET PROG(mapset-name) NEW Sample mapset Development

29 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Step1: Open Client session for Mainframe, type CICS3 and hit ENTER key. Enter your User id and Password and press the Enter Key. Execution of the sample mapset

30 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Step 2: Type the command CECI SEND MAP(map-name) MAPSET(mapset-name) ERASE FREEKB Execution of the sample mapset

31 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Summary What is a BMS? What are the two kinds of maps? Why do we need them? What are the macros used to define? What is MDT, FSET and FRSET? What are the symbolic map fields generated? How to detect the key pressed? How to dynamically change the attributes of the fields? Sample Mapset development

32 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/TP01/003 Version No: 1.0 Thank You!