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

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

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    210 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us