0% found this document useful (0 votes)
178 views1 page

DFSORT

DFSORT is a program used to sort records in ascending or descending order or merge multiple files into one file. The document provides a sample JCL for executing DFSORT, including statements for the program, libraries, parameters, input/output files, work files, and dumps. It also describes each JCL statement and notes that FREE=CLOSE is not allowed on DFSORT DD statements.

Uploaded by

Srikanth Talasu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views1 page

DFSORT

DFSORT is a program used to sort records in ascending or descending order or merge multiple files into one file. The document provides a sample JCL for executing DFSORT, including statements for the program, libraries, parameters, input/output files, work files, and dumps. It also describes each JCL statement and notes that FREE=CLOSE is not allowed on DFSORT DD statements.

Uploaded by

Srikanth Talasu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

DFSORT is a program used to sort records in ascending or descending

sequence, or to merge from 2 to 16 different files into one file. The


input and output files processed by DFSORT can be sequential or VSAM
files containing fixed-length or variable-length format records.
The JCL required to execute DFSORT appears below. A description of
each JCL statement follows the sample JCL. DFSORT control statement
descriptions appear below the JCL statement discussion. You can type
FIND '> DFSORT' on the command line above to skip to them.
DFSORT Sample JCL:
//JS10 EXEC PGM=SORT, CAN ALSO BE PGM=ICEMAN
// PARM=sort parms...
//STEPLIB DD DSN=...,DISP=SHR NEEDED IF SORT NOT ON LINK LIST
//STEPLIB DD DSN=...,DISP=SHR NEEDED IF SORT NOT ON LINK LIST
//SORTLIB DD DSN=...,DISP=SHR NEEDED ONLY IF TAPE WORK SORT
//DFSPARM DD * SORT OPTNL PARM AND CONTROL STMT
sort parms and sort control statements described below...
//SYSOUT DD SYSOUT=* SORT MESSAGES WRITTEN HERE
//SORTIN DD DSN=input..DSN.to.sort, DATA SET TO SORT
// DISP=SHR
//SORTINnn DD DSN=input..DSN.to.sort, DATA SETS TO MERGE 'nn'=01,02,etc.
// DISP=SHR
//SORTOUT DD DSN=sorted.output.dsn, SORTED OR MERGED OUTPUT
// DISP=SHR
//SORTWKnn DD UNIT=SYSDA,DISP=SHR, SORT WORK FILES 'nn'=01,02,etc.
// SPACE=(TRK,(30,30),RLSE)
//SYSIN DD * SORT CONTROL CARD DATA SET
//SORTCKPT DD DSN=CHECKPT,UNIT=TAPE, NEEDED IF CHECKPOINTING SORT
// DISP=(,KEEP),VOL=SER=ABC123
//SORTSNAP DD SYSOUT=* SNAP DUMP OUTPUT
//SYSUDUMP DD SYSOUT=* DUMP OUTPUT
//SYSMDUMP DD SYSOUT=* DUMP OUTPUT
//SYSABEND DD SYSOUT=* DUMP OUTPUT
//SORTDIAG DD DUMMY NEEDED IF DEBUGGING SORT PGM

A description of each JCL statement above appears below; please note


that FREE=CLOSE is not allowed on any DFSORT DD statement.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy