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.
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
#Sort
#Enterprise
#EnterpriseServer
#JCL
#ebcdic
#ASCII
#Server
#ALTSEQ
