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
How to perfrom sort on the below condition ?
-
- Posts: 1
- Joined: Tue Jan 23, 2018 1:18 pm
- Skillset: COBOL, JCL, CICS, REXX, IMS COBOL
- Referer: WEBsite
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: How to perfrom sort on the below condition ?
Decimal points are not numeric. Try the UFF format.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
COBOL SORT - How to sort entire file first & sort by Key
by k_ekam » Thu Dec 01, 2022 12:58 pm » in IBM Cobol - 3
- 1553
-
by Robert Sample
View the latest post
Wed Dec 07, 2022 7:32 am
-
-
- 1
- 1842
-
by sergeyken
View the latest post
Mon Nov 23, 2020 7:25 pm
-
-
How to use ASCII condition in DFSORT
by Prasanna G » Tue Sep 20, 2022 10:15 pm » in DFSORT/ICETOOL/ICEGENER - 10
- 2539
-
by prino
View the latest post
Thu Sep 22, 2022 12:53 am
-
-
- 2
- 1439
-
by willy jensen
View the latest post
Sun Nov 13, 2022 9:02 pm
-
- 1
- 1774
-
by prino
View the latest post
Tue Jul 02, 2024 2:23 pm