MVS Tools & Tricks

Total Page:16

File Type:pdf, Size:1020Kb

MVS Tools & Tricks MVS Tools & Tricks BY SAM GOLOB TSO Basics: Revisited ome of us go back to the days when PSCB bit settings control such properties SYS1.UADS, or from the settings in the S system support consisted of punching as OPER authority (the ability to issue TSO segment of the security system’s cards and running batch jobs. Those of us operator console commands from TSO), (RACF or equivalent) profile for that who remember appreciate how important it JCL authority (the ability to submit batch userid. However, once the TSO session is to have the ability to work interactively jobs), ACCOUNT authority (the ability to has been established and is running, the from terminals using IBM’s Time Sharing create and alter other TSO userids), and PSCB may be altered by using an autho- Option (TSO). Here I will reemphasize rized command. The truth is, the PSCB some aspects of TSO that may not be settings are the ones that are used by TSO, foremost in our minds. If you combine the not the RACF or UADS settings. TSO You cannot picture TSO as merely a way uses the PSCB as the reference point for to submit jobs using a terminal. Rather, a large collection of all subsequent “TSO authority” checking, TSO session actually has the same full such specialized TSO once the session has started, and does not access to the MVS operating system as a refer back to RACF or UADS later for the batch job or a started task. Let me elaborate command programs TSO-specific things. TSO interacts with a bit. Years ago, I used to work on a with the programming RACF later, in the same way as a batch DOS/VSE system part time. In order to do job, for doing “RACF-specific things.” anything, we had to punch cards and run features of CLISTs For example, a TSO session would interact batch jobs on that system. Then, we got an and REXX, the with RACF to verify whether it should early version of Interactive Control and have access to a dataset. Computing Facility (ICCF), which was TSO environment There are two free tools available in the IBM’s DOS/VSE terminal interface at that becomes a super CBT MVS Utilities Tape collection on File time. ICCF was a vast improvement over 300 that give you the ability to control the punching cards and reading them. However, mega-powerhouse to PSCB settings. These are called LPSCB to my knowledge, ICCF was only a better control and fix (“look at the PSCB”) and CPSCB (“change way of storing 80-byte card images, and in the PSCB”). Of course, CPSCB must run order to do any real work in the operating computer processing as an “authorized command.” However, system, you still had to submit a separate on the MVS system. LPSCB can be run by anyone, because all batch job. True interactivity of the terminal LPSCB does is to read and display the con- interface, with the innards of the operating tents of the PSCB control block. The IBM system, was not yet available. macro that describes the contents of the Not so TSO! Each TSO session runs in MOUNT authority (the ability to autho- PSCB is called IKJPSCB, and on an OS/390 an MVS address space and has full access rize a tape mount from the TSO session). 2.10 system IKJPSCB can be found in to everything in the operating system the These controls are TSO’s way of indicat- SYS1.MACLIB. It is worth your while to same way a batch job has. The only ing whether one userid is more “powerful” take 10 minutes to look at the IKJPSCB restriction is imposed by the security sys- than another. My point is that a “fully macro, and to see the kind of things in TSO tem (RACF, or whatever security package empowered” TSO userid can go anywhere that the PSCB controls. you have) and by TSO itself. Let me in the system; TSO does not merely store explain TSO’s main security mechanism. card images. WHAT CLISTS AND REXX Within TSO, a control block, called the The PSCB control block is created for EXECS DO Protected Step Control Block (PSCB) is each TSO session at logon time. The ini- established for each user. Within the tial bit settings in a particular TSO user’s I mentioned before that TSO sessions PSCB are bit settings to establish the PSCB come from one of two places: can interact with the MVS operating sys- “authority level” of that TSO user. These either they are derived from settings in tem in the same way as a batch job does. TECHNICAL SUPPORT • NOVEMBER 2001 WWW.NASPA.COM Potentially, this means that using TSO program execution, the CLIST would issue region available to the TSO session and alone you should not have to run batch FREE TSO commands against the allo- executes the TSO-command load module. jobs. Avoiding batch jobs is not always cated files to make them available for others The feature that distinguishes a TSO practical, but let me explain how it is pos- to use. command program from any other exe- sible to do the task of a batch job using Actually, besides just being vehicles to cutable load module is that it expects only TSO. execute programs and pre-allocate the files, Register 1 to point to a TSO control block What are the parts of a batch job as CLISTs have access to an interactive pro- (created by the control program of the TSO defined by its JCL? First, there is the JOB gramming language. Using the CLIST session) called the Command Processor card. The TSO equivalent of the JOB card programming language, you can execute Parameter List (CPPL). The CPPL contains is the session itself. All the activities of programs conditionally under the CLIST’s four address pointers. The first one points that TSO session are included under its control, and you can insert PARM data into to the buffer containing the command itself auspices, as though they were running as the programs conditionally. The CLIST (and possible parameters) — called the part of one job (the TSO session). Next language, besides being suited to executing Command Buffer — and the other three comes the EXEC card, which denotes the batch-type programs, is also tailored for point to the three TSO control blocks — the execution of a particular program and executing TSO-specific programs, called UPT, the PSCB, and the ECT. The CPPL is defines the “JOB STEP”. Under TSO, the TSO Commands. All in all, CLIST files, mapped by the macro IKJCPPL in user issues a “CALL” TSO command to executing under TSO, allow for much more SYS1.MACLIB. execute a batch program, or the user issues flexibility and conditional execution than It is important to note that a TSO com- any other TSO command, which is a load batch programs with their COND state- mand program can do anything that a batch module that was specifically designed to ments in the EXEC cards. program can, and is more suited to running run under TSO. The execution of such applications that interact with the terminal. programs or commands under TSO REXX: A FULL-BLOWN A user can write TSO commands to do defines the equivalent of a job step. PROGRAMMING LANGUAGE highly sophisticated specialized tasks, Finally, just as files are defined to a batch such as zapping disk storage interactively, job through the use of DD cards in the However, it does not stop there. As good changing the attributes of load modules, JCL, files are made known to a TSO session as the CLIST language is in providing pro- and browsing the contents of datasets in through the use of ALLOC and ATTRIB gramming flexibility to complicated chains full screen mode. If you combine the large TSO commands, which dynamically allo- of TSO command executions, its successor, collection of such specialized TSO com- cate any files needed by the program to be the REXX language, is far better. REXX is mand programs with the programming run under the TSO session. When these a full-blown programming language that features of CLISTs and REXX, the TSO files are no longer needed to do the task can access and manipulate MVS storage environment becomes a super mega-power- (job step), the FREE command is executed and follow control block chains, as well as house to control and fix computer processing against them to dynamically deallocate conditionally call programs to execute on the MVS system. them from the TSO session. against files. TSO in MVS, equipped with It is hard to enter all the ALLOC com- the CLIST and REXX languages as well, TSO-IN-BATCH mands and CALL commands necessary provides all kinds of system processing and every time you want to run a program system manipulation capabilities. I need to mention why you might want under TSO. It would be like having to Now you can see that TSO under MVS is to run a batch job instead of doing all retype all the JCL by hand every time you more than just a system to store a stack of your work under TSO. The problem with wanted to run a program in batch. Under cards for job submission. running a program under TSO is that it TSO, IBM made it possible to collect the usually ties up your terminal while it is TSO commands and data necessary to run TSO COMMANDS executing. For this reason, you would a task the same way you keep the JCL to rather run a batch job, which quietly runs run a job in a file, and submit it.
Recommended publications
  • Z/OS ISPF Services Guide COMMAND NAME
    z/OS 2.4 ISPF Services Guide IBM SC19-3626-40 Note Before using this information and the product it supports, read the information in “Notices” on page 399. This edition applies to Version 2 Release 4 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2021-06-22 © Copyright International Business Machines Corporation 1980, 2021. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures................................................................................................................ xv Tables................................................................................................................xvii Preface...............................................................................................................xix Who should use this document?............................................................................................................... xix What is in this document?......................................................................................................................... xix How to read the syntax diagrams..............................................................................................................xix z/OS information...............................................................................................xxiii How to send your comments to IBM...................................................................
    [Show full text]
  • TSO/E Programming Guide
    z/OS Version 2 Release 3 TSO/E Programming Guide IBM SA32-0981-30 Note Before using this information and the product it supports, read the information in “Notices” on page 137. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-02-16 © Copyright International Business Machines Corporation 1988, 2017. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents List of Figures....................................................................................................... ix List of Tables........................................................................................................ xi About this document...........................................................................................xiii Who should use this document.................................................................................................................xiii How this document is organized............................................................................................................... xiii How to use this document.........................................................................................................................xiii Where to find more information................................................................................................................ xiii How to send your comments to IBM......................................................................xv
    [Show full text]
  • TECHNOLOGY LIST - ISSUE DATE: March 18, 2019 Technology Definition: a Set of Knowledge, Skills And/Or Abilities, Taking a Significant Time (E.G
    IT CLASSIFICATION TECHNOLOGY LIST - ISSUE DATE: March 18, 2019 Technology Definition: A set of knowledge, skills and/or abilities, taking a significant time (e.g. 6 months) to learn, and applicable to the defined classification specification assigned. Example of Tools: These are examples only for illustration purposes and are not meant to constitute a full and/or comprehensive list. Classification Discipline Technology Definition Example of Tools The relational database management system provided by IBM that runs on Unix, Omegamon, IBM Admin Tools, Log Analyzer, Database Management Linux, Windows and z/OS platforms DB2 Compare, Nsynch, TSM, Universal DBA System DB2 including DB2 Connect and related tools Command, SQL SQL Server Mgmt Studio, Red Gate, The relational database management Vantage, Tivoli, Snap Manager, Toad, system and related tools provided by Enterprise Manager, SQL, Azure SQL SQL Server Microsoft Corp Database The relational database management Oracle enterprise manager, application system and related tools provided by Oracle express, RMAN, PL SQL, SQL developer, ORACLE Corp Toad, SQL The relational database management SYBASE system and related tools provided by Sybase ASE, OEM, RAC, Partioning, Encryption Cincom SUPRA SQL – Cincom's relational database management system provides access to data in open and proprietary environments through industry-standard SQL for standalone and client/server application Supra 2.X solutions. phpadmin, mysqladmin, MySql, Vertica, Open Source Open Source database management system SQLite, Hadoop The hierarchical database management system provided by IBM that runs on z/OS Hierarchical Database IMS mainframe platform including related tools BMC IMS Utilities, Strobe, Omegamon Cincom SUPRA® PDM – Cincom's networked, hierarchical database management system provides access to your data through a Physical Data Manager (PDM) that manages the data structures of the physical files that store the data.
    [Show full text]
  • Computer Performance Evaluation Users Group (CPEUG)
    COMPUTER SCIENCE & TECHNOLOGY: National Bureau of Standards Library, E-01 Admin. Bidg. OCT 1 1981 19105^1 QC / 00 COMPUTER PERFORMANCE EVALUATION USERS GROUP CPEUG 13th Meeting NBS Special Publication 500-18 U.S. DEPARTMENT OF COMMERCE National Bureau of Standards 3-18 NATIONAL BUREAU OF STANDARDS The National Bureau of Standards^ was established by an act of Congress March 3, 1901. The Bureau's overall goal is to strengthen and advance the Nation's science and technology and facilitate their effective application for public benefit. To this end, the Bureau conducts research and provides: (1) a basis for the Nation's physical measurement system, (2) scientific and technological services for industry and government, (3) a technical basis for equity in trade, and (4) technical services to pro- mote public safety. The Bureau consists of the Institute for Basic Standards, the Institute for Materials Research, the Institute for Applied Technology, the Institute for Computer Sciences and Technology, the Office for Information Programs, and the Office of Experimental Technology Incentives Program. THE INSTITUTE FOR BASIC STANDARDS provides the central basis within the United States of a complete and consist- ent system of physical measurement; coordinates that system with measurement systems of other nations; and furnishes essen- tial services leading to accurate and uniform physical measurements throughout the Nation's scientific community, industry, and commerce. The Institute consists of the Office of Measurement Services, and the following
    [Show full text]
  • Resource Measurement Facility User's Guide
    z/OS Version 2 Release 3 Resource Measurement Facility User's Guide IBM SC34-2664-30 Note Before using this information and the product it supports, read the information in “Notices” on page 381. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-02-16 © Copyright International Business Machines Corporation 1990, 2017. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents List of Figures..................................................................................................... xiii List of Tables........................................................................................................xv About this document.......................................................................................... xvii Who should use this document................................................................................................................xvii How this document is organized.............................................................................................................. xvii z/OS information...................................................................................................................................... xviii How to read syntax diagrams.................................................................................................................. xviii Symbols................................................................................................................................................xix
    [Show full text]
  • System Automation for Z/OS: User S Guide
    System Automation for z/OS IBM User’s Guide Version 3 Release 5 SC34-2718-00 System Automation for z/OS IBM User’s Guide Version 3 Release 5 SC34-2718-00 Note Before using this information and the product it supports, be sure to read the general information under Appendix E, “Notices,” on page 263. Editions This edition applies to IBM Tivoli System Automation for z/OS (Program Number 5698-SA3) Version 3 Release 5, an IBM licensed program, and to all subsequent releases and modifications until otherwise indicated in new editions or technical newsletters. This edition replaces SC34-2647-00. © Copyright IBM Corporation 1996, 2014. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures .............. vii | Operating Groups ........... 29 | Moving MOVE Groups ......... 29 Tables ............... ix Controlling Application Move and Server Management .............. 29 Move Functions ............ 29 Accessibility ............ xi Controlling Application Move with Preference Using assistive technologies ......... xi Values ............... 31 Keyboard navigation of the user interface .... xi SA z/OS Automation Flags ......... 40 Automation Agent Flags ......... 40 Dotted decimal syntax diagrams ... xiii The Automation Manager Global Automation Flag ................ 42 How to send your comments to IBM .. xv Setting Automation Flags ......... 43 Relationship Between Automation Flags and About this publication ....... xvii Resource Status ............ 43 Automation Flags and Minor Resource Flags .. 44 Who Should Use This Publication ...... xvii Statuses Supplied by the Automation Manager .. 44 Where to Find More Information....... xvii Observed Status ............ 46 The System Automation for z/OS Library... xvii Automation Status ........... 47 Related Product Information ....... xviii Desired Status ............ 48 Related Online Information .......
    [Show full text]
  • ISPF User's Guide Volume I
    z/OS Version 2 Release 3 ISPF User's Guide Volume I IBM SC19-3627-30 Note Before using this information and the product it supports, read the information in “Notices” on page 213. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-06-21 © Copyright International Business Machines Corporation 1980, 2019. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures................................................................................................................. xi Tables..................................................................................................................xv Preface..............................................................................................................xvii About this document................................................................................................................................ xvii Who should use this document................................................................................................................xvii What is in this document?........................................................................................................................ xvii How to read the syntax diagrams............................................................................................................xviii z/OS information...............................................................................................xxiii
    [Show full text]
  • Mainframe Talent Drain Our Recent Survey Shows Mainframes Are Here to Stay
    2020 Mainframe Market Pulse survey | A commissioned study conducted by Forrester Consulting on behalf of Deloitte Mainframe talent drain Our recent survey shows mainframes are here to stay. Will IT organizations have the talent they need to deliver on hybrid strategies? Think mainframes are on their way out? Think again. But the workforce with the skills to support these Deloitte’s 2020 Mainframe Market Pulse survey tells an systems is aging out—and the pipeline to fill these alternative story. Business and IT leaders show plenty of roles is diminishing. How are business and IT leaders interest in mainframes—especially in upgrading legacy addressing this talent gap to support their mainframe environments as the foundation for hybrid strategies in needs as they move into the future? data and transaction-heavy industries. Here’s what 261 business and IT leaders revealed about the talent gap and how they’re attempting to mitigate it. These survey insights offer a window into their thinking, and can be useful in guiding your talent, investment, and IT strategies. Skill set slow-down Rising reliance on mainframes 91% OF RESPONDENTS You should skill up your talent pool identifiedEXPANDING their to support strategic IT investments. mainframe footprints as a moderate or critical priority over the next year. Reduced access to mainframe talent BUT 79% cited their top 71% said their mainframe team mainframe-related challenge is is understaffed acquiring the right resources and skills to get work done. and 54% noted their mainframe team is underfunded “The aging population of mainframe employees is a concern for long-term stability.” – Director of IT at a healthcare organization Where it hurts 93% said 59% said 56% said It’s moderately to extremely We have mainframe knowledge/ There are major talent gaps in challenging to acquire the right skills gaps among our own the workforce when it comes mainframe resources and skills.
    [Show full text]
  • Ultrastar C15K600 SAS OEM Specification
    Hard Disk Drive Specification Ultrastar C15K600 2.5” SAS Hard Disk Drive Models HUC156060CSS200 HUC156060CS4200 HUC156060CSS201 HUC156060CS4201 HUC156060CSS204 HUC156060CS4204 HUC156060CSS205 HUC156060CS4205 HUC156045CSS200 HUC156045CS4200 HUC156045CSS201 HUC156045CS4201 HUC156045CSS204 HUC156045CS4204 HUC156045CSS205 HUC156045CS4205 HUC156030CSS200 HUC156030CS4200 HUC156030CSS201 HUC156030CS4201 HUC156030CSS204 HUC156030CS4204 Version: 1.6 HUC156030CSS205 HUC156030CS4205 27 July 2016 HGST Ultrastar C15K600 Hard Disk Drive Specification 1 Revised Edition (Rev 1.6) (27 July 2016) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: HGST, A WESTERN DIGITAL COMPANY, PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer or express or implied warranties in certain transactions, therefore, this statement may not apply to you. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. HGST may make improvements or changes in any products or programs described in this publication at any time. It is possible that this publication may contain reference to, or information about, HGST products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that HGST intends to announce such HGST products, programming, or services in your country. Technical information about this product is available by contacting your local HGST representative or on the Internet at http://www.hgst.com HGST may have patents or pending patent applications covering subject matter in this document.
    [Show full text]
  • ISPF Services Guide
    z/OS Version 2 Release 3 ISPF Services Guide IBM SC19-3626-30 Note Before using this information and the product it supports, read the information in “Notices” on page 395. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-06-21 © Copyright International Business Machines Corporation 1980, 2019. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures................................................................................................................ xv Tables................................................................................................................xvii Preface...............................................................................................................xix Who should use this document?............................................................................................................... xix What is in this document?......................................................................................................................... xix How to read the syntax diagrams..............................................................................................................xix z/OS information...............................................................................................xxiii How to send your comments to IBM...................................................................
    [Show full text]
  • PGI Fortran Reference Copyright © 2005, Stmicroelectronics, Inc
    PGI® Fortran Reference The Portland Group STMicroelectronics 9150 SW Pioneer Court, Suite H Wilsonville, OR 97070 www.pgroup.com While every precaution has been taken in the preparation of this document, The Portland Group™, a wholly-owned subsidiary of STMicroelectronics, makes no warranty for the use of its products and assumes no responsibility for any errors that may appear, or for damages resulting from the use of the information contained herein. STMicroelectronics retains the right to make changes to this information at any time, without notice. The software described in this document is distributed under license from STMicroelectronics and may be used or copied only in accordance with the terms of the license agreement. No part of this document may be reproduced or transmitted in any form or by any means, for any purpose other than the purchaser's personal use without the express written permission of STMicroelectronics. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this manual, STMicroelectronics was aware of a trademark claim. The designations have been printed in caps or initial caps. Thanks is given to the Parallel Tools Consortium and, in particular, to the High Performance Debugging Forum for their efforts. PGF90, PGF95, PGC++, Cluster Development Kit, CDK and The Portland Group are trademarks and PGI, PGHPF, PGF77, PGCC, PGPROF, and PGDBG are registered trademarks of STMicroelectronics, Inc. Other brands and names are the property of their respective owners. The use of STLport, a C++ Library, is licensed separately and license, distribution and copyright notice can be found in online documentation for a given release of the PGI compilers and tools.
    [Show full text]
  • ISPF Dialog Developer's Guide and Reference
    z/OS Version 2 Release 3 ISPF Dialog Developer's Guide and Reference IBM SC19-3619-30 Note Before using this information and the product it supports, read the information in “Notices” on page 403. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-06-21 © Copyright International Business Machines Corporation 1980, 2019. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures................................................................................................................. ix Tables................................................................................................................ xiii Preface................................................................................................................xv About this document.................................................................................................................................. xv Who should use this document..................................................................................................................xv What is in this document?.......................................................................................................................... xv How to read the syntax diagrams..............................................................................................................xvi z/OS information.................................................................................................xxi
    [Show full text]