A Simple Cobol Example – ISPF vs RDz Enterprise Systems1.

Slides:



Advertisements
Similar presentations
RDz and Process Integration Using Menu Manager and HATS to customize your RDz installation David Myers.
Advertisements

Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Chapter 3: Modularization
Chapter 2: Modularization
Programming Types of Testing.
Program Flow Charting How to tackle the beginning stage a program design.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 8: Designing and developing applications for z/OS.
Program Flow Charting How to tackle the beginning stage a program design.
Finding and Debugging Errors
Introduction of z/OS Basics © 2006 IBM Corporation Chapter 5: Working with data sets.
12 IBM OS/JCL: DD Statements. //TPEIN DD UNIT=TAPE,DSN=PR.FLE, // DISP=(OLD,KEEP,KEEP) The DD Statement: – Defines a data set to the operating system.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)
Chapter 5: Working with data sets
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
Chapter 3 Planning Your Solution
® IBM Software Group © 2008 IBM Corporation Rational Developer for System z User Group Kickoff.
IBM ISPF Productivity Tool © 2008 IBM Corporation IBM ISPF Productivity Tool for z/OS V 5.9 More Than Just ISPF.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 7: Designing and developing applications for z/OS.
Your Interactive Guide to the Digital World Discovering Computers 2012.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
JCL Day 1. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Course Plan Day 1 :Introduction to JCL, JOB & EXEC statement,
Structured COBOL Programming, Stern & Stern, 9th edition
IMS 4212: Application Architecture and Intro to Stored Procedures 1 Dr. Lawrence West, Management Dept., University of Central Florida
Chapter To familiarize you with  Why COBOL is a popular business-oriented language.  Programming practices and techniques  History of COBOL.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 8: Using Job Control Language (JCL) and System Display and.
Click to add text Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility.
Enterprise Computing – Hands On! (ECHO!) Enterprise Computing Conference June, 2015 Enterprise Computing – Hands On! (ECHO!) Angelo F. Corridori Director.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
10/16/ ER/CORP/CRS/OS02/003-4 JCL DAY 4. 10/16/ ER/CORP/CRS/OS02/003-4 VSAM DATASETS (virtual storage access method) These are the logical.
IBM ISPF Productivity Tool © 2008 IBM Corporation IBM ISPF Productivity Tool for z/OS V 5.10 More Than Just ISPF.
The DATA DIVISION Chapter 3. COBOL Data Organization Field - group of characters forming a meaningful unit or basic fact –Characters in a name or digits.
® IBM Software Group © 2011 IBM Corporation RDz Workbench – Debugging z/OS COBOL Applications Batch COBOL Debugging Workshop Jon Sayles, Rational System.
Stephen Linkin Houston Community College 21-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Using JCL Procedures.
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.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 4: Working with data sets.
MVS (Day 2). Copyright © 2005, Infosys Technologies Ltd 2 ER/CORP/CRS/OS01/003 Version No: 1.0 Agenda Data Management –Definition of data set and Record.
JCL Day 2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Agenda for Day 2  DD statement  Syntax  Parameters  Procedures.
JCL Day 3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Agenda for Day 3  VSAM data sets  Definition & Types 
Lecture 31 Creating Executable Programs on the Mainframe Tuesday, January 20, 2009.
1 Using JCL And SDSF Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
Enterprise Computing: Bridging the gap to Generation-Y with RDz and LINUX Web Christine Davis, PhD David Douglas, PhD.
1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
The Software Development Process
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 z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
Unit 17: SDLC. Systems Development Life Cycle Five Major Phases Plus Documentation throughout Plus Evaluation…
IMS 4212: Application Architecture and Intro to Stored Procedures 1 Dr. Lawrence West, Management Dept., University of Central Florida
Sequential Processing to Update a File Please use speaker notes for additional information!
HORIZONT XINFO – Scanner zOS – JCL1 HORIZONT XINFO – Scanner zOS – JCl.
XINFO – How to use XINFO in Development
The Client/Server Database Environment
Key Ideas from day 1 slides
XINFO – Programming Languages zOS - Assembler
The Client/Server Database Environment
Microsoft Access Illustrated
Designing and Debugging Batch and Interactive COBOL Programs
JCL Standards #2 Company Name
DB2.
Machine Independent Features
Chapter 3 The DATA DIVISION.
An Introduction to Structured Program Design in COBOL
XINFO – Programming Languages zOS – Cobol
Presentation transcript:

A Simple Cobol Example – ISPF vs RDz Enterprise Systems1

Traditional ISPF ISPF document Job stream would include Cobol Program wrapped with JCL Likely in PDS named accountid.work.compiles as extension was not critical Job would be submitted Would look for output in JES TSO SDSF ST Owner accountID to reduce list to your jobs Put ? by appropriate entry Put s by file(s) to review for errors If error, then back to file, correct and repeat process–(see ISPF Document) 2Enterprise Systems

Cobol Example Program reads a record from a file, selects specific fields from the record and writes the line. JCL matches system setup at the University of Arkansas Good example to illustrate application JCL references to system resources like the Cobol compiler and to data files 3Enterprise Systems

Cobol Example (single job stream) 4Enterprise Systems

Cobol Example (single job stream) 5Enterprise Systems

Cobol Example (single job stream) ALL JCL statements must be in Upper Case Three JCL statements JOB – information related to the job to be run EXEC – executes a program or a procedure DD – data definition  points to data and files Example //COBJOB JOB (COBOLPROG),'ACCTID',NOTIFY=ACCTID, // CLASS=A,MSGLEVEL=(1,1),TIME=1,MSGCLASS=A //STEP1 EXEC PROC=IGYWCLG //COBOL.SYSIN DD * … Cobol Program with references to input (READER) and output (DISKFL1) … //GO.DISKFL1 DD DSN=ACCTID.WORK.OUT(COBOUT),DISP=SHR //GO.READER DD * …. Data // 6Enterprise Systems

Cobol Example (single job stream) EXEC statement //STEP1 EXEC PROC=IGYWCLG Executes a procedure name IGYWCLG This procedure has all the programs needed to compile, link needed files to create an object module and go—run the program. The CLG ending is CompileLinkGo 7Enterprise Systems

Cobol Example (single job stream) DD statements //STEP1 EXEC PROC=IGYWCLG //COBOL.SYSIN DD * IDENTIFICATION DIVISION. …..Rest of Cobol program 8Enterprise Systems

Cobol Example (single job stream) DD statements The DD statement below allows the Cobol program to abstract the name used in the program. The READER points to a DD statement to be used for input SELECT CARD-IN ASSIGN TO UT-S-READER. //* //GO.READER DD * ANDERSON ESSABIA ANNIECE XXXXXXXXX ISYS ….... /* // 9Enterprise Systems

Cobol Example (single job stream) DD statements The DD statement below allows the Cobol program to abstract the name used in the program. The DISKFL1 points to a DD statement to be used for output SELECT DISK-FILE1 ASSIGN TO UT-S-DISKFL1... //GO.DISKFL1 DD DSN=ACCTID.WORK.OUT(COBOUT),DISP=SHR, // VOL=SER=DB1469,SPACE=(CYL,(1,1,1)),UNIT=SYSDA, // DCB=(RECFM=FB,LRECL=80,BLKSIZE=6400,DSORG=PO) 10Enterprise Systems

Cobol Example (single job stream) DD statements The DD statement below allows the Cobol program to abstract the name used in the program. The DISKFL1 points to a DD statement to be used for output SELECT DISK-FILE1 ASSIGN TO UT-S-DISKFL1... //GO.DISKFL1 DD DSN=ACCTID.WORK.OUT(COBOUT),DISP=SHR, // VOL=SER=DB1469,SPACE=(CYL,(1,1,1)),UNIT=SYSDA, // DCB=(RECFM=FB,LRECL=80,BLKSIZE=6400,DSORG=PO) 11Enterprise Systems

Cobol Example (single job stream) 12Enterprise Systems DD ParameterMeaning DISP(MOD,KEEP) DISP  Disposition. Relates what is to be done with the PDS. In this case, it is modify and keep. There are many possibilities but can you guess what NEW, CATLG and OLD, DELETE do? VOL=SER=DB1469 VOL  Volume, SER  SERIAL. This is analogous to a letter for a disk drive on your PC. TEMP91 is The name of the disk. SPACE=(CYL,(1,1,1)) Defines space for the file in terms of cylinders—you could also use tracks UNIT=SYSDA SYSDA  Systems Direct Access and means a disk DCB=(RECFM=FB.. DCB  Data Control Block, LRECL  Logical Record Length BLKSIZE  Block Size and should be multiple of the record length DSORG  Dataset Organization – Partitioned Organization The DD Parameter

Cobol Example (single job stream) Submit Job TSO SDSF ST OWNER acctid 13Enterprise Systems

Cobol Example (single job stream) Review JESYSMS Place letter “s” to left of JESYSMS 14Enterprise Systems

Cobol Example (single job stream) Find COND CODEs—hopefully, all zero 15Enterprise Systems

Cobol Example (single job stream) Locate error If error is in compile, then review Cobol Correction requires moving around to the correct file to make the corrections and then resubmittig 16Enterprise Systems

RDz This same job stream can be submitted within RDz in tack if placed in a PDS with x.x.JCL However, take advantage of RDz color coded syntax checking by putting Cobol, JCL, etc. into appropriate PDS,s recognized by the RDz editors Suggested PDSs ACCTID.WORK.COBOL ACCTID.WORK.JCL ACCTID.WORK.Data Submitted job and JES output in same area If error, can correct with RDz editor—rerun No navigation to other interfaces required 18Enterprise Systems

Rational Developer for System z (covered later)  Programmer can simultaneously:  Debug a COBOL Program  Create a data table in DB2  Browse local files and PDS  Run SQL against DB2  Check their JES output Rational Developer uses Views and Perspectives to Organize Development Work

Cobol Example (JES) 20Enterprise Systems

Cobol Example (JES) (Error) MOE instead of MOVE— open SYSPRINT file Find error in editor MOE CRD-PWD TO CRD-OUT-PWD. ==000055==> IGYPS2072-S "MOE" was invalid. Skipped to the next verb 21Enterprise Systems

Cobol Example (Using PDSs to Advantage) JCL goes into ACCTID.WORK.JCL COBOL goes into ACCTID.WORK.COBOL Input data goes into ACCTID.WORK.DATA RDz editors sense type of file and provides color-coded syntax checking Right-click, select submit on the JCL to execute job Job will be in JES for viewing 22Enterprise Systems

Cobol Example (JCL) 23Enterprise Systems //COBJOB JOB (COBOLPROG),'DOUGLAS',NOTIFY=DOUGLAS, // CLASS=A,MSGLEVEL=(1,1),TIME=1,MSGCLASS=A //STEP1 EXEC PROC=IGYWCLG //COBOL.SYSIN DD DSN=DOUGLAS.WORK.COBOL(SIMPLEC),DISP=SHR //GO.DISKFL1 DD DSN=DOUGLAS.WORK.OUT(COBOUT),DISP=SHR //GO.READER DD DSN=DOUGLAS.WORK.DATA(SMPLDATA),DISP=(OLD,KEEP)

Cobol Example (Data) 24Enterprise Systems

Cobol Example (Output) 25Enterprise Systems

Rational Developer for z Integrated Development Environment (IDE) GUI based Multiple views and perspectives for multitasking Immediate feedback on syntax Helps students understand inter- relationships in the z environment 26

Cobol Example (single job stream) ALL JCL statements must be in Upper Case Three JCL statements JOB – information related to the job to be run EXEC – executes a program or a procedure DD – data definition  points to data and files Example //COBJOB JOB (COBOLPROG),'ACCTID',NOTIFY=ACCTID, // CLASS=A,MSGLEVEL=(1,1),TIME=1,MSGCLASS=A //STEP1 EXEC PROC=IGYWCLG //COBOL.SYSIN DD * … Cobol Program with references to input (READER) and output (DISKFL1) … //GO.DISKFL1 DD DSN=ACCTID.WORK.OUT(COBOUT),DISP=SHR //GO.READER DD * …. Data // 27Enterprise Systems