Lecture 31 Creating Executable Programs on the Mainframe Tuesday, January 20, 2009.

Slides:



Advertisements
Similar presentations
CPSC 441 TUTORIAL – JANUARY 16, 2012 TA: MARYAM ELAHI INTRODUCTION TO C.
Advertisements

Euro/File Demonstration Domino Software Limited. EURO/File EURO/FILE works on a very simple principle and requires four steps to perform a run: Define.
Express Reorg: How to save your weekend Laura Rochon Ajilon Consulting.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 10: Compiling and link-editing a program on z/OS.
Introduction to the new mainframe: z/OS basics © Copyright IBM Corp., All rights reserved. Chapter 9 Compiling and link-editing a program on z/OS.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 10: Compiling and link-editing a program on z/OS.
5/2/ ER/CORP/CRS/OS02/003-1 Job Control Language Bhargava KC Extension: E&R Rotunda, II Floor, Cubicle 15
HORIZONT 1 SmartJCL ® The Complete JCL Solution Product Presentation HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89.
HORIZONT 1 ProcMan ® The Handover Process Manager Product Presentation HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 8: Designing and developing applications for z/OS.
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.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)
CICS BMS Maps Concepts and commands.
iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test.
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.
Financial Information System Running Reports in FIS.
Stephen Linkin Houston Community College 1/31/07 © Mike Murach & Associates, HCC, IBM 1 Using JCL and JES To Manage Program Execution Chapter.
OO Cobol in z/OS.
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,
A Simple Cobol Example – ISPF vs RDz Enterprise Systems1.
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
INVENTORY MAINTENANCE 1. ANALYSIS 2. RETRIEVE Environment 1 Stage 1Stage 2 3. EDIT WIP 4. ADD 5. TEST 6. APPROVE 7. MOVE.
© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
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.
Appendix C – AllFusion Endevor Life Cycle – Quick Reference - Page 1 Logon to TSO Select the Endevor Quick-Edit option To View an Element Environment xxxxxxxx.
Access Online Cardholder Transaction Approval Training 1 Client Logo.
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 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.
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.
MVS. Traditional Mainframes Mainframe operating systems were designed to concurrently process several batch applications. Over time: – The number of concurrent.
IBM MAINFRAMES CICS Training Class-01.
10/26/ ER/CORP/CRS/OS02/003-3 JCL DAY 3. 10/26/ ER/CORP/CRS/OS02/003-3 PROCEDURES It is a prepacked JCL. JCL needed by many different users.
® IBM Software Group © 2005 IBM Corporation January 30, 2006 Application Time Facility Version V2.8.6.
Files to turn in for Homework # 1 1)TimerApplet.java 2)TimerApplet.html 3)TimerSyntaxErr.java 4)TimerSemanticErr.java 5)TimerSemanticErr.html 6)HomeWork1.txt.
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.
Lecture 21 Lecture 2: Using TSO and ISPF Tuesday, January 20, 2009.
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 
1 Using JCL And SDSF Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
HELLO WORLD program in COBOL - CIS12 Please use speaker notes for additional information!
© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
© Copyright. All rights reserved. Datatask Pty Ltd JCL Standards #1 Company Name.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
CICS Transaction Server V3.1 © 2005 IBM Corporation CICS Transaction Server for z/OS V3.1 Enterprise management Takahiro Ishiwatari
HORIZONT 1 XINFO ® The IT Information System z/OS - JCL HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
GDT Tips and Tricks. GDT Tips and Tricks Doug Evans GDT 2004 International User Conference – Evolving the Legacy July  Tucson, Arizona GDT Tips.
HORIZONT XINFO – Scanner zOS – JCL1 HORIZONT XINFO – Scanner zOS – JCl.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
NextGen Trustee GL/Accounting This class will cover NextGen Financial Management for Trustee Offices. We will look at GL accounts, Transactions, Bank Reconciliation,
1 CS 192 Lecture 4 Winter 2003 December 8-9, 2003 Dr. Shafay Shamail.
The Complete JCL Solution
Cloning Flow for
XINFO – How to use XINFO in Development
The IT - Information System
XINFO – Scanner z/OS – JCL
JOB CONTROL LANGUAGE IDC Training Centre.
Skill Based Assessment
JCL Standards #2 Company Name
DB2.
JCL Standards #3 Company Name
Company Name Date - Time
Company Name Date - Time
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Overview of VSAM and Defining a Cluster
Presentation transcript:

Lecture 31 Creating Executable Programs on the Mainframe Tuesday, January 20, 2009

Lecture 32 Lecture Overview Program execution components JCL COBOL SDSF Compiling and executing Lab 1c Batch and online modes Checking output Viewing/debugging errors

Lecture 33 Example: Compile/Execution Structure Java SourceByte Code JDK (compiler) JRE (executes) Output

Lecture 34 Program Execution Components COBOL Source JCL Copy Libraries Load Module Files Other COBOL Programs JCL (executes load module) Creates SDSF Can be in the same JCL

Lecture 35

6

7

8

9 //MM01P JOB (36512),'A PRINCE',NOTIFY=&SYSUID //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=MM01.COPYLIB.COBOL(CUSTMAST),DISP=SHR //SYSUT2 DD SYSOUT=* //SYSIN DD DUMMY The JOB statement must be the first statement in a job. It supplies a job name to identify the job, along with accounting information and various options that affect how the job is processed. The “JOB” Statement

Lecture 310 //MM01P JOB (36512),'A PRINCE',NOTIFY=&SYSUID //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=MM01.COPYLIB.COBOL(CUSTMAST),DISP=SHR //SYSUT2 DD SYSOUT=* //SYSIN DD DUMMY The EXEC statement identifies the program or procedure to be executed in the job step. It can have a step name in the name field. The “EXEC” Statement

Lecture 311 //MM01P JOB (36512),'A PRINCE',NOTIFY=&SYSUID //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=MM01.COPYLIB.COBOL(CUSTMAST),DISP=SHR //SYSUT2 DD SYSOUT=* //SYSIN DD DUMMY  The DD statement allocates the data sets required by the program or procedure. The ddname in the name field must be the same as the one that’s used in the program or procedure.  You typically code the DD statement for a printer file using the SYSOUT = * format. Then, the output is processed based on the default output class or the output class you specify in the MSGCLASS parameter of the JOB statement.  You can specify a dummy data set by coding the DUMMY parameter on its DD statement. The “DD” Statement

Lecture 312

Lecture 313

Lecture 314

Lecture 315

Lecture 316

Lecture 317

Lecture 318

Lecture 319 SDSF - Status

Lecture 320 SDSF - Owner

Lecture 321 SDSF – Select Job

Lecture 322 SDSF – View Output

Lecture 323

Lecture 324

Lecture 325

Lecture 326 Lab 1c Compile, link and run a “Hello World” Cobol application. Create/Run the program using JCL. Run the program in Batch and online (TSO) modes Step 1: Create 3 PDSs: Create a data set for the cobol program: xxx.HELLO.COBOL Create a data set for the the JCL to compile/run the program: xxx.HELLO.JCL Create a data set for the resulting executable: xxx.HELLO.LOAD (where ‘XXX’ is your User Id)

Lecture 327 Lab 1c - COBOL Step 2: Create the source code “Hello World” Cobol example: xxx.HELLO.COBOL(FIRST) This would be done using ISPF. Note that the line numbers are created/updated automatically

Lecture 328 Lab 1c - Cobol Program

Lecture 329 Lab 1c - JCL STEP 3: Create the JCL used to compile/link/run the hello world example. It should be in the JCL PDS: XXX.HELLO.JCL(COMPILE)

Lecture 330 Lab 1c - JCL

Lecture 331 Lab 1c – Execute (Batch) STEP 4: Execute the JCL – from within ISPF (when editing the JCL), enter the command ‘submit’ on the command line (aka the line that has “Command ===>” ) STEP 5: View the results from executing the JCL. From the top level in ISPF: Execute command 13 (SDSF). Select O (to view output from the batch job). You can Filter based on owner (your account id), You should be able to see the output “MYHELLO” – that was the name of the JOB (you can see this in the JCL). To view the output, one would enter an “?” in the left column prior to the name of the output. This will show the different “tasks in the JCL. Then to see the actual output, enter a “s” next to the output you want to view (Hint: Look at the “GO” output)

Lecture 332 Lab 1c – Execute (TSO) STEP 6: Execute using TSO (Using ISPF “command” - 6) ALLOCATE DDNAME(SYSOUT) DSNAME(*) ALLOCATE DDNAME(SYSIN) DSNAME(*) CALL ’xxx.HELLO.LOAD(FIRST)'

Lecture 333

Lecture 334

Lecture 335

Lecture 336

Lecture 337

Lecture 338

Lecture 339

Lecture 340

Lecture 341