Z/OS DFSORT: Getting Started Is a User’S Guide and Tutorial for DFSORT (Data Facility Sort)

Total Page:16

File Type:pdf, Size:1020Kb

Z/OS DFSORT: Getting Started Is a User’S Guide and Tutorial for DFSORT (Data Facility Sort) z/OS Version 2 Release 3 DFSORT: Getting Started IBM SC23-6880-30 Note Before using this information and the product it supports, read the information in “Notices” on page 185. 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 1983, 2017. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents List of Figures...................................................................................................... vii List of Tables........................................................................................................ ix About this document...........................................................................................xiii How to use this document.........................................................................................................................xiii Required product knowledge.................................................................................................................... xiii How to send your comments to IBM......................................................................xv If you have a technical problem.................................................................................................................xv Part 1. Introduction............................................................................................... 1 Chapter 1. What is DFSORT?........................................................................................................................3 DFSORT on the World Wide Web............................................................................................................3 DFSORT FTP site.....................................................................................................................................3 Data sets, records and fields..................................................................................................................3 Sorting data sets.....................................................................................................................................4 Merging data sets................................................................................................................................... 5 Copying data sets................................................................................................................................... 5 Joining data sets.....................................................................................................................................5 What else can you do with DFSORT?..................................................................................................... 5 Creating and running DFSORT jobs........................................................................................................6 Writing jobs....................................................................................................................................... 6 Summary of DFSORT control statements........................................................................................ 6 Running jobs......................................................................................................................................7 Creating and using the sample data sets...............................................................................................7 Part 2. Learning to write JCL and DFSORT control statements.................................9 Chapter 2. Sorting, merging, and copying data sets................................................................................. 11 Sorting data sets...................................................................................................................................11 Sorting by multiple fields................................................................................................................13 Fields...............................................................................................................................................15 Continuing a statement.................................................................................................................. 15 Comment statements..................................................................................................................... 15 JCL for sorting data sets directly....................................................................................................15 Merging data sets................................................................................................................................. 16 Writing the MERGE control statement........................................................................................... 17 JCL for merging data sets directly..................................................................................................18 FIELDS.............................................................................................................................................19 FORMAT...........................................................................................................................................19 VB data set considerations.................................................................................................................. 19 Starting positions............................................................................................................................19 Short control fields......................................................................................................................... 20 Copying data sets................................................................................................................................. 20 Specifying COPY on the SORT, MERGE, or OPTION statement..................................................... 20 JCL for copying data sets directly...................................................................................................20 Chapter 3. Including or omitting records.................................................................................................. 23 Writing the INCLUDE statement.......................................................................................................... 23 Writing the OMIT statement.................................................................................................................26 Allowable comparisons for INCLUDE and OMIT................................................................................. 26 iii Writing constants..................................................................................................................................28 Character strings.............................................................................................................................28 Hexadecimal strings....................................................................................................................... 28 Decimal numbers............................................................................................................................28 Numeric tests for INCLUDE and OMIT.................................................................................................29 Alphanumeric Tests for INCLUDE and OMIT....................................................................................... 29 Substring search for INCLUDE and OMIT............................................................................................ 30 VB data set considerations.................................................................................................................. 30 Starting positions............................................................................................................................30 Short control fields......................................................................................................................... 31 Summary.............................................................................................................................................. 31 Chapter 4. Summing records.....................................................................................................................33 Writing the SUM statement.................................................................................................................. 33 Suppressing records with duplicate control fields..............................................................................35 Handling overflow................................................................................................................................ 36 VB data set considerations.................................................................................................................. 36 Starting positions............................................................................................................................36 Short summary fields......................................................................................................................36 Chapter 5. Reformatting records with fixed fields.................................................................................... 39 Reformatting records after sorting with BUILD or FIELDS..................................................................40
Recommended publications
  • DC Console Using DC Console Application Design Software
    DC Console Using DC Console Application Design Software DC Console is easy-to-use, application design software developed specifically to work in conjunction with AML’s DC Suite. Create. Distribute. Collect. Every LDX10 handheld computer comes with DC Suite, which includes seven (7) pre-developed applications for common data collection tasks. Now LDX10 users can use DC Console to modify these applications, or create their own from scratch. AML 800.648.4452 Made in USA www.amltd.com Introduction This document briefly covers how to use DC Console and the features and settings. Be sure to read this document in its entirety before attempting to use AML’s DC Console with a DC Suite compatible device. What is the difference between an “App” and a “Suite”? “Apps” are single applications running on the device used to collect and store data. In most cases, multiple apps would be utilized to handle various operations. For example, the ‘Item_Quantity’ app is one of the most widely used apps and the most direct means to take a basic inventory count, it produces a data file showing what items are in stock, the relative quantities, and requires minimal input from the mobile worker(s). Other operations will require additional input, for example, if you also need to know the specific location for each item in inventory, the ‘Item_Lot_Quantity’ app would be a better fit. Apps can be used in a variety of ways and provide the LDX10 the flexibility to handle virtually any data collection operation. “Suite” files are simply collections of individual apps. Suite files allow you to easily manage and edit multiple apps from within a single ‘store-house’ file and provide an effortless means for device deployment.
    [Show full text]
  • ITS 500 Series the New Alsaldobreda/Firema Meneghino Train for Milan
    Connectors ITS 500 ITS 500 Series Reverse Bayonet Single Pole Power Connector Introduction New York MTA The new AlsaldoBreda/Firema Glenair is proud to supply connectors and Meneghino train for Milan, Italy interconnect systems for various programs for the The Meneghino is a new six-car dual- New York MTA. voltage train for the Metropolitana Milanese Glenair interconnects are employed on critical (Milan underground). It belongs to the “MNG” Traction Motor System and Intercar Jumper (Metropolitana di Nuova Generazione or Metro applications on the M8 EMU Railcars supplied by New Generation) family.The MNG is designed and Kawasaki for Metro North Railroad. manufactured in cooperation with Ansaldo Breda, a premier Italian rail transport and engineering company. Each train is built with two identical traction units, in the “Rp-M-M” configuration: Each unit includes one trailer coach (Rp) equipped with a driver’s cab, and two intermediate motor coaches (M) without a driver’s cab. C The M8 is an electric multiple unit (EMU) railroad car built by Kawasaki for use on the New Haven Line of the Metro-North Railroad. Photo: office of Dannel Malloy Glenair has also supplied product for numerous applications on the Long Island Railroad / Metro North M9 cars such as Traction Motor Systems, Intercar Jumpers, Lighting, Communication, HVAC, Converters, as well as others. The new AlsaldoBreda/Firema Meneghino train for Milan, Italy The electrically - controlled passenger doors (8 on each coach) grant a high reliability standard and very low maintenance. The train is equipped with a highly advanced Passengers’ Audio/ Video Information System. With this system, passengers receive informational messages and video The EMU M9 railcars will replace the M-3 fleet and regarding train service, broadcast directly to LCD expand the electric fleet for East Side Access.
    [Show full text]
  • UNIX Commands
    UNIX commands ls list the contents of a directory ls -l list the content of a directory with more details mkdir <directory> create the directory <directory> cd <directory> change to the directory <directory> cd .. move back one directory cp <file1> <file2> copy the file <file1> into <file2> mv <file1> <file2> move the file <file1> to <file2> rm <file> remove the file <file> rmdir <directory> delete the directory <directory> man <command> display the manual page for <command> module load netcdf load the netcdf commands to use module load ferret load ferret module load name load the module “name” to use its commands vi <file> read the content of the file <file> vimdiff <file1> <file2> show the differences between files <file1> and <file2> pwd show current directory tar –czvf file.tar.gz file compress one or multiple files into file.tar.gz tar –xzvf file.tar.gz extract the compressed file file.tar.gz ./name execute the executable called name qsub scriptname submits a script to the queuing system qdel # cancel the submitted job number # from the queue qstat show queued jobs qstat –u zName show only your queued jobs Inside vi ESC, then :q! Quit without saving ESC, then :wq Quit with saving ESC, then i Get in insert mode to edit text ESC, then /word Search content for word ESC, then :% Go to end of document ESC, then :0 Go to beginning of document ESC, then :set nu Add line numbers ESC, then :# Go to line number # N.B.: If inside vimdiff, you have 2 files opened, so you need to quit vi twice.
    [Show full text]
  • LATEX for Beginners
    LATEX for Beginners Workbook Edition 5, March 2014 Document Reference: 3722-2014 Preface This is an absolute beginners guide to writing documents in LATEX using TeXworks. It assumes no prior knowledge of LATEX, or any other computing language. This workbook is designed to be used at the `LATEX for Beginners' student iSkills seminar, and also for self-paced study. Its aim is to introduce an absolute beginner to LATEX and teach the basic commands, so that they can create a simple document and find out whether LATEX will be useful to them. If you require this document in an alternative format, such as large print, please email [email protected]. Copyright c IS 2014 Permission is granted to any individual or institution to use, copy or redis- tribute this document whole or in part, so long as it is not sold for profit and provided that the above copyright notice and this permission notice appear in all copies. Where any part of this document is included in another document, due ac- knowledgement is required. i ii Contents 1 Introduction 1 1.1 What is LATEX?..........................1 1.2 Before You Start . .2 2 Document Structure 3 2.1 Essentials . .3 2.2 Troubleshooting . .5 2.3 Creating a Title . .5 2.4 Sections . .6 2.5 Labelling . .7 2.6 Table of Contents . .8 3 Typesetting Text 11 3.1 Font Effects . 11 3.2 Coloured Text . 11 3.3 Font Sizes . 12 3.4 Lists . 13 3.5 Comments & Spacing . 14 3.6 Special Characters . 15 4 Tables 17 4.1 Practical .
    [Show full text]
  • BIMM 143 Introduction to UNIX
    BIMM 143 Introduction to UNIX Barry Grant http://thegrantlab.org/bimm143 Do it Yourself! Lets get started… Mac Terminal PC Git Bash SideNote: Terminal vs Shell • Shell: A command-line interface that allows a user to Setting Upinteract with the operating system by typing commands. • Terminal [emulator]: A graphical interface to the shell (i.e. • Mac users: openthe a window Terminal you get when you launch Git Bash/iTerm/etc.). • Windows users: install MobaXterm and then open a terminal Shell prompt Introduction To Barry Grant Introduction To Shell Barry Grant Do it Yourself! Print Working Directory: a.k.a. where the hell am I? This is a comment line pwd This is our first UNIX command :-) Don’t type the “>” bit it is the “shell prompt”! List out the files and directories where you are ls Q. What do you see after each command? Q. Does it make sense if you compare to your Mac: Finder or Windows: File Explorer? On Mac only :( open . Note the [SPACE] is important Download any file to your current directory/folder curl -O https://bioboot.github.io/bggn213_S18/class-material/bggn213_01_unix.zip curl -O https://bioboot.github.io/bggn213_S18/class-material/bggn213_01_unix.zip ls unzip bggn213_01_unix.zip Q. Does what you see at each step make sense if you compare to your Mac: Finder or Windows: File Explorer? Download any file to your current directory/folder curl -O https://bioboot.github.io/bggn213_S18/class-material/bggn213_01_unix.zip List out the files and directories where you are (NB: Use TAB for auto-complete) ls bggn213_01_unix.zip Un-zip your downloaded file unzip bggn213_01_unix.zip curlChange -O https://bioboot.github.io/bggn213_S18/class-material/bggn213_01_unix.zip directory (i.e.
    [Show full text]
  • M7 Electric Multiple Unitанаnew York
    Electric Multiple Unit -M- 7 POWERCAR WITH TOILET ---10' 6' B END FEND I 3,200 mi , -: -" 0 C==- ~=0 :- CJCJ ~~[] CJCJCJCJCJCJ [] I D b 01 " ~) -1::1 1211-1/2 t~J ~~W ~~IL...I ~w -A'-'1~~~- I ~~ 309~mmt ~ 1 I~ 11 m 2205~16~m-! 591..1.6" mm --I I 1- -- 59°6" ° 4°8-1/2. , ~ 16,~:,60~m ~-- -;cl 10435mm ~ .-1 25.908 mm F END GENERAL DATA wheelchair locations 2 type of vehicle electric multiple unit passenger per car (seated) under design operator Metropolitan Transportation Authority passengers per car (standing) crush load under design Long Island Railroad order date May 1999 TECHNICAL CHARACTERISTICS quantity 113 power cars without toilet .power fed by third rail: 400-900 Vdc 113 power cars with toilet .auxiliary voltages: 230 Vac / 3 ph / 60 Hz train consist up to 14 cars 72 Vdc .AC traction motor: 265 hp (200 kW) DIMENSIONS AND WEIGHf Metric Imperial .dynamic and pneumatic (tread & disc) braking system length over coupler 25,908 mm 85'0" .coil spring primary suspension width over side sheets 3,200 mm 10'6" .air-bag secondary suspension rail to roof height 3,950 mm 12' II Y;" .stainless steel carbody rail to top of floor height I ,295 mm 51" .fabricated steel frame trucks rail to top of height 4,039 mm 13' 3" .automatic parking brake doorway width 1,270 mm 50" .forced-air ventilation doorway height 1,981 mm 6'6" .air-conditioning capacity of 18 tons floor to high ceiling height 2,261 mm 89" .electric strip heaters floor to low ceiling height 2,007 mm 79" .ADA compliant toilet room (8 car) wheel diameter 914 mm 36" .vacuum sewage system
    [Show full text]
  • Cluster Generate — Generate Grouping Variables from a Cluster Analysis
    Title stata.com cluster generate — Generate grouping variables from a cluster analysis Description Quick start Menu Syntax Options Remarks and examples Also see Description cluster generate creates summary or grouping variables from a hierarchical cluster analysis; the result depends on the function. A single variable may be created containing a group number based on the requested number of groups or cutting the dendrogram at a specified (dis)similarity value. A set of new variables may be created if a range of group sizes is specified. Users can add more cluster generate functions; see[ MV] cluster programming subroutines. Quick start Generate grouping variable g5 with 5 groups from the most recent cluster analysis cluster generate g5 = groups(5) As above, 4 grouping variables (g4, g5, g6, and g7) with 4, 5, 6, and 7 groups cluster generate g = groups(4/7) As above, but use the cluster analysis named myclus cluster generate g = groups(4/7), name(myclus) Generate grouping variable mygroups from the most recent cluster analysis by cutting the dendrogram at dissimilarity value 38 cluster generate mygroups = cut(38) Menu Statistics > Multivariate analysis > Cluster analysis > Postclustering > Summary variables from cluster analysis 1 2 cluster generate — Generate grouping variables from a cluster analysis Syntax Generate grouping variables for specified numbers of clusters cluster generate newvar j stub = groups(numlist) , options Generate grouping variable by cutting the dendrogram cluster generate newvar = cut(#) , name(clname) option Description name(clname) name of cluster analysis to use in producing new variables ties(error) produce error message for ties; default ties(skip) ignore requests that result in ties ties(fewer) produce results for largest number of groups smaller than your request ties(more) produce results for smallest number of groups larger than your request Options name(clname) specifies the name of the cluster analysis to use in producing the new variables.
    [Show full text]
  • Student Number: Surname: Given Name
    Computer Science 2211a Midterm Examination Sample Solutions 9 November 20XX 1 hour 40 minutes Student Number: Surname: Given name: Instructions/Notes: The examination has 35 questions on 9 pages, and a total of 110 marks. Put all answers on the question paper. This is a closed book exam. NO ELECTRONIC DEVICES OF ANY KIND ARE ALLOWED. 1. [4 marks] Which of the following Unix commands/utilities are filters? Correct answers are in blue. mkdir cd nl passwd grep cat chmod scriptfix mv 2. [1 mark] The Unix command echo HOME will print the contents of the environment variable whose name is HOME. True False 3. [1 mark] In C, the null character is another name for the null pointer. True False 4. [3 marks] The protection code for the file abc.dat is currently –rwxr--r-- . The command chmod a=x abc.dat is equivalent to the command: a. chmod 755 abc.dat b. chmod 711 abc.dat c. chmod 155 abc.dat d. chmod 111 abc.dat e. none of the above 5. [3 marks] The protection code for the file abc.dat is currently –rwxr--r-- . The command chmod ug+w abc.dat is equivalent to the command: a. chmod 766 abc.dat b. chmod 764 abc.dat c. chmod 754 abc.dat d. chmod 222 abc.dat e. none of the above 2 6. [3 marks] The protection code for def.dat is currently dr-xr--r-- , and the protection code for def.dat/ghi.dat is currently -r-xr--r-- . Give one or more chmod commands that will set the protections properly so that the owner of the two files will be able to delete ghi.dat using the command rm def.dat/ghi.dat chmod u+w def.dat or chmod –r u+w def.dat 7.
    [Show full text]
  • MTA Capital Program 2008–2013
    MTA Capital Program 2008–2013 February 2008 TABLE OF CONTENTS Page Overview: The MTA 2008-2013 Capital Program-- - i - “Building for the Future on a Firm Foundation” 2008-2013 Introduction: Investment Summary and Program Funding - 1 - I. Core CPRB Capital Program - 7 - MTA NYC Transit 2008-2013 Capital Program - 13 - Overview Program Plan MTA Long Island Rail Road 2008-2013 Capital Program - 45 - Overview Program Plan MTA Metro-North Railroad 2008-2013 Capital Program - 73 - Overview Program Plan MTA Bus Company 2008-2013 Capital Program - 101 - Overview Program Plan MTA Security 2008-2013 Capital Program - 111 - Overview Introduction MTA Interagency 2008-2013 Capital Program - 115 - Overview Program Plan II. Capacity Expansion - 123 - Completing the Current Expansion Projects: MTA Capital Construction Company: - 125 - Overview Program plan East Side Access Second Avenue Subway Fulton Street Transit Center South Ferry Terminal Regional Investments Miscellaneous 2005-2009 Capital Program New Capacity Expansion Investments - 141 - Overview Investments to Implement Congestion Pricing New Capacity Expansions to Support Regional Growth Communications Based Train Control Second Avenue Subway Next Phase Penn Station Access Jamaica Capacity Improvements #7 Fleet Expansion Capacity Planning Studies Sustainability Investments Program Project Listings (blue pages) - 149 - (not paginated; follows order above, beginning with blue pages for MTA NYC Transit and ending with blue pages for MTA Capital Construction Company) MTA Bridges and Tunnels 2008-2013 Capital Program - B-1 - Overview Program Plan Program Project Listings - B-25 - 2005-2009 Capital Program THE 2008-2013 CAPITAL PROGRAM: Building for the Future on a Firm Foundation In the early 1960’s, the New York Metropolitan Region’s mass transportation network faced financial collapse and a crisis of capacity.
    [Show full text]
  • Unix Programming
    P.G DEPARTMENT OF COMPUTER APPLICATIONS 18PMC532 UNIX PROGRAMMING K1 QUESTIONS WITH ANSWERS UNIT- 1 1) Define unix. Unix was originally written in assembler, but it was rewritten in 1973 in c, which was principally authored by Dennis Ritchie ( c is based on the b language developed by kenThompson. 2) Discuss the Communication. Excellent communication with users, network User can easily exchange mail,dta,pgms in the network 3) Discuss Security Login Names Passwords Access Rights File Level (R W X) File Encryption 4) Define PORTABILITY UNIX run on any type of Hardware and configuration Flexibility credits goes to Dennis Ritchie( c pgms) Ported with IBM PC to GRAY 2 5) Define OPEN SYSTEM Everything in unix is treated as file(source pgm, Floppy disk,printer, terminal etc., Modification of the system is easy because the Source code is always available 6) The file system breaks the disk in to four segements The boot block The super block The Inode table Data block 7) Command used to find out the block size on your file $cmchk BSIZE=1024 8) Define Boot Block Generally the first block number 0 is called the BOOT BLOCK. It consists of Hardware specific boot program that loads the file known as kernal of the system. 9) Define super block It describes the state of the file system ie how large it is and how many maximum Files can it accommodate This is the 2nd block and is number 1 used to control the allocation of disk blocks 10) Define inode table The third segment includes block number 2 to n of the file system is called Inode Table.
    [Show full text]
  • PS TEXT EDIT Reference Manual Is Designed to Give You a Complete Is About Overview of TEDIT
    Information Management Technology Library PS TEXT EDIT™ Reference Manual Abstract This manual describes PS TEXT EDIT, a multi-screen block mode text editor. It provides a complete overview of the product and instructions for using each command. Part Number 058059 Tandem Computers Incorporated Document History Edition Part Number Product Version OS Version Date First Edition 82550 A00 TEDIT B20 GUARDIAN 90 B20 October 1985 (Preliminary) Second Edition 82550 B00 TEDIT B30 GUARDIAN 90 B30 April 1986 Update 1 82242 TEDIT C00 GUARDIAN 90 C00 November 1987 Third Edition 058059 TEDIT C00 GUARDIAN 90 C00 July 1991 Note The second edition of this manual was reformatted in July 1991; no changes were made to the manual’s content at that time. New editions incorporate any updates issued since the previous edition. Copyright All rights reserved. No part of this document may be reproduced in any form, including photocopying or translation to another language, without the prior written consent of Tandem Computers Incorporated. Copyright 1991 Tandem Computers Incorporated. Contents What This Book Is About xvii Who Should Use This Book xvii How to Use This Book xvii Where to Go for More Information xix What’s New in This Update xx Section 1 Introduction to TEDIT What Is PS TEXT EDIT? 1-1 TEDIT Features 1-1 TEDIT Commands 1-2 Using TEDIT Commands 1-3 Terminals and TEDIT 1-3 Starting TEDIT 1-4 Section 2 TEDIT Topics Overview 2-1 Understanding Syntax 2-2 Note About the Examples in This Book 2-3 BALANCED-EXPRESSION 2-5 CHARACTER 2-9 058059 Tandem Computers
    [Show full text]
  • Drmnsmay-July2013
    The Railyard Local Volume 12, Issue 3 -The Monthly Newsletter of the Danbury Railway Museum- May‐July 2013 DRM at GCT’s Grand In This Issue ~ Upcoming Events at DRM ‐ Page 2 Centennial Parade of Trains ~ Words from Our President ‐ Page 4 Huge crowds come to see famous and ~ Board of Directors News ‐ Page 5 historic railcars on display Plus . Ten Years Ago and New Members Danbury Railway Museum was honored to have five pieces of its rolling stock chosen to be dis‐ Burro Crane Revival played at Grand Central Terminal’s 100th anniversary Part 1 Introduction “Parade of Trains” the weekend of May 11th & 12th. The By Michael Madyda, Project Manager Metropolitan After itʹs arrival in October 1995, our 1947 Transportation Model 30 Burro crane CB3004 had sat unrestored and Authority hand‐picked inoperable. A couple of unsuccessful attempts had the Tonawanda Valley been made in the past to restore it. For those of you Pullman Co. observa‐ who remember, CB3004 came with a counterpart, tion car, the PRR Class CB3001, that was supposed to provide parts for the BNM‐70 Baggage/ restoration of CB3004. Several years ago, a decision Railway Post Office was made to scrap CB3001 when the yard was being car, the 1171 ACMU, cleaned up. Unfortunately, vital parts from CB3004 the NYC 2013 EMD that were removed, but not replaced, for its restoration FL‐9 diesel electric were lost or scrapped during that time. locomotive, and the CDOT 605 ALCO RS‐ A sign welcomes visitors. 3m diesel to be trans‐ Top photo: Carolyn Taylor ported and displayed Bottom photo: Bob Boothe at the event.
    [Show full text]