Sort Utilities
-
Upload
rahul-kumar-k -
Category
Documents
-
view
213 -
download
1
description
Transcript of Sort Utilities
SORT UTILITIESINPUT DATASET STRUCTURENAME PIC X(20).CATEGORYPIC X(15).COUNTRY PIC X(15).RANK PIC 99.FILLER PIC X(28).JCL USED FOR SORTING (SORT CARD FOR SORTING A FILE USING TWO FIELDS) In thi !CL "ORTIN #$%#$$nt th$ in%&t '($"ORTOUT #$%#$$nt th$ )&t%&t '($"ORT FILE*"+(1,20,C-,A) i th$ )#t .)nt#)( t/t$0$nt. //V021984S JOB ,,NOTIFY=&SYSUID,CLASS=U,MSGLEVEL=(1,1),//MSGCLASS= //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//!! T"IS JOB E#LAINS DIFFE$ENT TY#E OF SO$T UTILITIES!!//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//SO$T EEC #GM=SO$T //SYSOUT DD SYSOUT=! //SYS#$INT DD SYSOUT=! //SO$TIN DD DSN=V021984%SO$T%IN#UT%FILE,DIS#=S"$ //SO$T&'01 DD UNIT=SYSDA,S#ACE=(CYL,(1,1)) //SO$TOUTDD DSN=V021984%SO$T%OUT#UT%FILE,//DIS#=(NE&,CATLG,DELETE), //UNIT=SYSDA,S#ACE=(T$',(10,10),$LSE), //DCB=(MODEL,$ECFM=FB,L$ECL=80,BL'SI(E=800)//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//!! SO$T CA$D FO$ SO$TING T"E FILE BY ONE FIELD !!//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //SYSINDD * SORT FIELDS=(1,20,CH,A) /* In th$ /1)2$ )#t ./#3 1#$%#$$nt th$ %)iti)n )4 th$ '$(3 t) 1$ )#t$320#$%#$$nt th$ ($n5th )4 th$ '$(3CH #$%#$$nt th$ t6%$ )4 th$ '$(3A#$%#$$nt th$ /.$n3in5. Oth$# %)i1($ )%ti)n 4)# t6%$ )4 th$ '$(3 /#$7Data Type Charater Type!"""""""""""""" """"""""""""""""""""""Ch/#/.t$# CHN&0$#i. #DP/.8$3 *$.i0/( (COMP9:) PD;in/#6 (COMP) $I Oth$# %)i1($ )%ti)n 4)# th$ )#t )#3$# /#$7A 4)# A.$n3in5D 4)# *$.$n3in5SORT CARD FOR SORTING A FILE USING TWO FIELDS//SYSINDD ! SO$T FIELDS=(21,1),C",A,)1,2,(D,A)/! -$#$th$in%&t'($i)#t$3'#t16th$./t$5)#6/n3(/t$#16th$i##/n8. FOR%AT&I4 / '($ i )#t$3 16 t