How can a file be sorted in EBCDIC order in an ASCII environment using JCL ?

How can a file be sorted in EBCDIC order in an ASCII environment using JCL ?

Problem


How can a file be sorted in EBCDIC order in an ASCII environment using JCL ?


Resolution

To sort a file in EBCDIC order in an ASCII environment using JCL, use the ALTSEQ CODE option/parameter.

The attached zip file EBCDIC.zip, contains a sample JCL called EBCDIC.JCL, this JCL gives the results using SORT in EBCDIC order when run in an ASCII environment/region.

EBCDIC.zip

The ALTSEQ parameter should look like this ...

ALTSEQ CODE=(30F0,31F1,32F2,33F3,34F4,35F5,36F6,37F7,38F8,39F9,
6141,6242,6343,6444,6545,6646,6747,6848,6949,6A4A,
6B4B,6C4C,6D4D,6E4E,6F4F,7050,7151,7252,7353,7454,
7555,7656,7757,7858,7959,7A5A,
4161,4262,4363,4464,4565,4666,4767,4868,4969,4A6A,
4B6B,4C6C,4D6D,4E6E,4F6F,5070,5171,5272,5373,5474,
5575,5676,5777,5878,5979,5A7A)

 

Incident#3116169

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-10-25 08:51
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.