Let us have the following control statement :
SORT FIELDS=(1,10,CH,A,26,4,CH,A,23,2,CH,A,20,2,CH,A,
36,4,CH,A,33,2,CH,A,30,2,CH,A, --> here is where I have the problem
11,2,CH,A,13,2,CH,A,40,1,CH,A)
OPTION DYNALLOC
36,4,CH,A,33,2,CH,A,30,2,CH,A, --> here is where I have the problem
11,2,CH,A,13,2,CH,A,40,1,CH,A)
OPTION DYNALLOC
I'd like to know if is is possible to do this sort altering the collating sequence ONLY for some of the positions of the file. These positions are : 36,4,CH,A,33,2,CH,A,30,2,CH,A.
What I need is to do the sort in such a way that character SPACES X'40' is higher than any other alphanumeric character only for fields 36,4,CH,A,33,2,CH,A,30,2,CH,A.
Example :
Input Sample File is :
038555168SITMC 24/04/200702/05/20072
038555168SITMC 08/05/200701/06/20076
038555168SITMC 08/05/2007 2
038555168SITMC 10/09/200729/11/20072
038555168SITMC 08/05/200701/06/20076
038555168SITMC 08/05/2007 2
038555168SITMC 10/09/200729/11/20072
Output file now I have is :
038555168SITMC 24/04/200702/05/20072
038555168SITMC 08/05/2007 2
038555168SITMC 08/05/200701/06/20076
038555168SITMC 10/09/200729/11/20072
038555168SITMC 08/05/2007 2
038555168SITMC 08/05/200701/06/20076
038555168SITMC 10/09/200729/11/20072
What I need is :
038555168SITMC 24/04/200702/05/20072
038555168SITMC 08/05/200701/06/20076
038555168SITMC 08/05/2007 2
038555168SITMC 10/09/200729/11/20072
038555168SITMC 08/05/200701/06/20076
038555168SITMC 08/05/2007 2
038555168SITMC 10/09/200729/11/20072
Code'd