JCL SORT详解.pdf

  1. 1、本文档共31页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
JCL SORT详解

Appendix SORT A SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC. JCL Utilities SORT SYS-ED?\COMPUTER EDUCATION TECHNIQUES, INC. (JCL UTIL - 0.8) APP A: Page 1 1 Sorting Data There are a number of utility programs available for sorting data. The two most common are ICEMAN and SYNCSORT. Many installations change the name of the program to SORT. Sort JCL Both sort programs use the JCL shown below: //SORT1 EXEC PGM=ICEMAN //SYSOUT DD SYSOUT=* //SORTIN DD DSN=SYSED.UNSORTED.DATA, // DISP=SHR //SORTOUT DD DSN=SYSED.SORTED.DATA, // DISP=(,CATLG), // UNIT=SYSDA, // SPACE=(CYL,5) //SYSIN DD * SORT FIELDS=(10,4,CH,A) SYSOUT directs the sort messages to a SYSOUT class. SORTIN is the ddname identifying the input data to be sorted. After sorting, the data is written to the SORTOUT DD statement. Sometimes the sort program requires sort work areas to be specified. These are unnamed temporary disk data sets with the ddname SORTWKO1,SORTWKO2, AND SORTWKO3. Consult the reference manual for your sort program to determine when you must include these statements. Sort Control Statements The SYSIN DD statement points to a control statement which tells the sort program: C What fields to sort. C What format the data is in. C What order to sort into. JCL Utilities SORT SYS-ED?\COMPUTER EDUCATION TECHNIQUES, INC. (JCL UTIL - 0.8) APP A: Page 2 The format of the statement is either: SORT FIELDS=(loc,len,format,seq...) SORT FIELDS=(loc,len,seq...).FORMAT=format where: C loc indicates the location of the field which is the sort key. Location 1 is the first character is the record. C len designates the number of characters in the sort field. C format describes the format of data contained in the sort key. The common formats are: CH Character ZD Zoned Decimal PD Packed Decimal BI Binary C seq specifies the sequence into which the records are to be stored. The two options are: A Ascending D Descendin g Example: SORT FIELDS=(10,4,CH,A) This statement sorts a file on a 4-byte

文档评论(0)

l215322 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档