Sort

General Information

OTech's sorting program is Syncsort. This program rearranges the records of a data set in order to produce a specific sequential form, e.g., chronological or alphabetical order.

This section explains the general policies of submitting jobs using OTech 's Sort program and work areas. These policies should not be construed to be efficient in all cases since all OTech customers have different processing requirements. Therefore, OTech recommends reviewing this section as a starting point for Sort information and to consult the following manual for detailed information: SYNCSORT MVS (Release 3.5) Manual #SI-0101-8

Syncsort can be initiated through Job Control Language or invoked from a program written in COBOL, PL/1 or Assembler language. Sorts executing at OTech falls under two (2) categories: Small or Large sorts.

  • JCL EXEC statement:
  • //stepname EXEC PGM=SORT

Consult the SYNCSORT MVS manual for detailed information on initiating from other programs.

Guidelines for Big Sorts

Use these guidelines for sorts requiring more than 640 cylinders per DD statement.

Jobs using SYS1.BIG.SRTWKxx are limited to a maximum of 3 steps:

  • The step doing the sort;
  • IEFBR14 or IEHPROGM, the step to do (un)cataloguing,
  • BTSTRP step to submit another job through the internal reader.

OTech provides and maintains several pre-allocated sort work areas for customers. These are labeled SYS1.BIG.SRTWK01 -SYS1.BIG.SRTWK07.If you require more, contact OTech's DASD Management Unit at 739-7556.

Examples:
//SORTWK01 DD DSN=SYS1.BIG.SRTWK01,DISP=OLD
//SORTWK02 DD DSN=SYS1.BIG.SRTWK02,DISP=OLD
//SORTWK03 DD DSN=SYS1.BIG.SRTWK03,DISP=OLD
//SORTWK04 DD DSN=SYS1.BIG.SRTWK04,DISP=OLD
//SORTWK05 DD DSN=SYS1.BIG.SRTWK05,DISP=OLD
//SORTWK06 DD DSN=SYS1.BIG.SRTWK06,DISP=OLD
//SORTWK07 DD DSN=SYS1.BIG.SRTWK07,DISP=OLD

 

Syncsort allows dynamic allocation of SORTWK data sets. Dynamic allocation supplements any SORTWKnn DD statement that are supplied to the sort. Syncsort uses the value specified in the SIZE and FILSZ parameter to calculate the number of bytes in the SORTIN file. For detailed information on dynamic allocation, consult the Syncsort MVS manual.

Guidelines For Small Sorts

Small sorts (less than 640 Cylinders) do not require the customer to use OTech 's large sort work areas. Customers should use the following SPACE parameter:

//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(40,40))

The SPACE limit per DD card is (40,40). This allows a total of 640 cylinders on SORTWK01, SORTWK04, SORTWK07, and SORTWK08 or if you do not need that much, divide by 16 and code the results as the primary and secondary allocations. For example, 450 (total cylinders needed) divided by 16 equals 28.12, so code (29,29) as the primary and secondary. Use up to eight (8) 'SORTWKxx DD' statements.

Example:
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(40,40))
//SORTWK02 DD UNIT=SYSDA,SPACE=(TRK,1)
//SORTWK03 DD UNIT=SYSDA,SPACE=(TRK,1)
//SORTWK04 DD UNIT=SYSDA,SPACE=(CYL,(40,40))
//SORTWK05 DD UNIT=SYSDA,SPACE=(TRK,1)
//SORTWK06 DD UNIT=SYSDA,SPACE=(TRK,1)
//SORTWK07 DD UNIT=SYSDA,SPACE=(CYL,(40,40))
//SORTWK08 DD UNIT=SYSDA,SPACE=(CYL,(40,40))

Customer Guide

Loading

 



 

Contact Us

Service.Desk@State.ca.gov

(916) 464-4311

P.O. Box 1810
Rancho Cordova, CA
95741-1810