CICS Basic Commands COBOL programming statements.

Slides:



Advertisements
Similar presentations
Oracle PL/SQL IV Exceptions Packages.
Advertisements

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.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
CS 275Tidwell Course NotesPage 110 Chapter 7: Getting Input From Users Designing interactive forms, in which the user is expected to supply information.
Programming Logic and Design Fourth Edition, Introductory
Programming Logic and Design Fourth Edition, Introductory
COBOL Considerations Identification Division. Environment Division
Lecture-5 Though SQL is the natural language of the DBA, it suffers from various inherent disadvantages, when used as a conventional programming language.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Program Design and Development
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
Understanding the Mainline Logical Flow Through a Program (continued)
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.
© 2005 by Prentice Hall Chapter 3c Designing Interfaces and Dialogues.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
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.
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.
1 Chapter 9 Writing, Testing, and Debugging Access Applications.
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.
 Allows sophisticated data processing  Build complex business logic in a modular fashion  Use over and over  Execute rapidly – little network traffic.
 Allows sophisticated data processing  Build complex business logic in a modular fashion  Use over and over  Execute rapidly – little network traffic.
ECE 264 Object-Oriented Software Development Instructor: Dr. Honggang Wang Fall 2012 Lecture 3: Requirements Specification, C++ Basics.
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.
INTRODUCTION TO ALGORITHMS PROGRAMMING. Objectives Give a definition of the term algorithm Describe the various parts of the pseudocode algorithm or algorithm.
© The McGraw-Hill Companies, 2006 Chapter 4 Implementing methods.
PHP meets MySQL.
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.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
CNG 140 C Programming Lecture Notes 2 Processing and Interactive Input Spring 2007.
A First Book of ANSI C Fourth Edition Chapter 3 Processing and Interactive Input.
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.
3-1 Chapter 3. To familiarize you with  Ways in which data is organized in COBOL  Rules for forming data-names  Defining input and output files in.
University of Sunderland COM 220 Lecture Six Slide 1 Building Interactive Forms Applications using Oracle.
IBM MAINFRAMES CICS Training Class-01.
Chapter 9 I/O Streams and Data Files
1 Week 12 l Overview of Streams and File I/O l Text File I/O Streams and File I/O.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
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.
1 Program Input Software Design Chapter 4. 2 You Will Want to Know... Prompting for and reading values into a program. Accessing data from a file. What.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 11 Understanding transaction managers on z/OS.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
File Systems cs550 Operating Systems David Monismith.
C++ for Engineers and Scientists Second Edition Chapter 7 Completing the Basics.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
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.
 2007 Pearson Education, Inc. All rights reserved. A Simple C Program 1 /* ************************************************* *** Program: hello_world.
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Lab 2 Writing PL/SQL Blocks CISB514 Advanced Database Systems.
 2003 Prentice Hall, Inc. All rights reserved Basics of a Typical C++ Environment C++ systems –Program-development environment –Language –C++
Introduction to PL/SQL N. Dimililer. About PL/SQL –PL/SQL is an extension to SQL with design features of programming languages. –Data manipulation and.
Chapter 1: Introduction to Computers and Programming.
File I/O. I/O Flags Flags are passed to give some information about how the file is to be used. – Read only file – flag=0x0 – Write only file – flag=0x1.
Operation System Program 4
DB2.
Chapter 3 The DATA DIVISION.
Data Groupings: File File: a group of related records
PL/SQL Declaring Variables.
Using screens and adding two numbers - addda.cbl
JavaScript: Introduction to Scripting
Chapter 1 c++ structure C++ Input / Output
Presentation transcript:

CICS Basic Commands COBOL programming statements

Basic CICS Commands Send and Receive commands used to communicate simple messages and receive non-formatted data from the terminal user. Return is used to terminate and application and give control back to the calling program or CICS. When control given back to CICS task is terminated.

Working with Maps Symbolic map contains: A 12-byte TIOA (Terminal Input/Output Area) prefix. An input area redefined by the output area. For Input Functions following fields are meaningful: L – Half word binary field length of data F – 1 byte field with X’80’ if the Erase EOF key is pressed. If this is case ‘L’ will contain zeroes. I – The actual data entered by the operator For Output Functions A – A 1 byte field that contains the attribute byte O – The actual data you want to send to the terminal Typically, first CICS command in program is SEND MAP.

Output Mapping – Send Map

Send Map Alternatives Three ways to specify what to put on the screen: Symbolic Map only or Physical Map only or Both Physical and Symbolic Map No dataonly/maponly option specified Initial map needs to merge Physical and Symbolic map together for display

Send Map with Dataonly option Uses only the symbolic description map fields. Used when map has already been sent to the screen and you want to change or add information to it. BMS will use the data you put in the symbolic area. might want to highlight data areas with errors

Send Map with Maponly option Uses the physical map only. Physical map has in it the field headings, all the attribute bytes and the location of where all information is to be placed. NO information from the symbolic map is sent.

Send Map Notes Before building your map for output make sure to initialize map storage area to nulls. Do this to be sure there is no data left by a previous task and used by mistake. Nulls are not transmitted on a Send Map. If variable name used for Map and Mapset, the FROM option is required.

Input Mapping – Receive Map

Receive Map Used to take in information from the TIOA into working storage. User presses one of the AID keys, signaling a request to send data to CICS. Updates 2 EIB fields: EIBCPOSN – relative cursor position EIBAID – value representing key pressed by user.

Receive Map Notes Coding variables in the map and mapset name, INTO option required. For all Receive Map commands, check for the MAPFAIL condition. MAPFAIL means no data was transmitted back to program because: Operator did not key data into fields or Operator pressed the Clear key.

Return command RETURN command returns controls to program at previous logical level. If program at level 1 then control goes to CICS and task terminates. To end task, but continue pseudoconversational application, you must code TRANSID on the Return command.

Return command EXEC CICS RECEIVE INTO (data-area) LENGTH (data-area) RESP (data-area) END EXEC oRESP option in the command tells CICS that you will handle errors in your program logic and can be used on many commands.

Return Command Notes The LENGTH option specifies the maximum data length your program is prepared to accept. CICS places the actual length received in the LENGTH data area, and it truncates the message to the maximum specified. Program sets LENGTH before execution. CICS sets after execution.

DFHAID and DFHBMSCA CICS supplied copybooks DFHAID declares AID constants for determining which key was pressed. DFHBMSCA declares constants needed to alter field attribute bytes. This copybook may be replaced with one that has more descriptive constant names.

Communication Area

Execution Interface Block EIB code block inserted into the Linkage Section of the program by CICS EIB fields provide information about the current task EIBCALEN Specifies length of the data passed to program in communication area If EIBCALEN = zero then program is being executed the first time If EIBCALEN > zero then move the DFHCOMMAREA in linkage section to COMMUNICATION-AREA in working storage as first step in program.