Page 1 of 1

How to perfrom sort on the below condition ?

PostPosted: Tue Jan 23, 2018 1:25 pm
by Dharma1995
i am having the below record,

input :

1111 000020.50
1111 000340.50
1111 000100.50
2222 080000.40
3333 000040.40
4444 000100.50
3333 000100.50
2222 000100.50

sort cards :

//SYSIN DD *
OPTION ZDPRINT
SORT FIELDS=(1,4,ZD)
SUM FIELDS=(6,9,ZD)
/*

required output :

1111 000461.50
2222 080100.90
3333 000140.90
4444 000100.50

i am getting Soc7 error , how should i define the format of the decimal digits

Re: How to perfrom sort on the below condition ?

PostPosted: Tue Jan 23, 2018 7:46 pm
by Robert Sample
Decimal points are not numeric. Try the UFF format.