Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: Summing on Mixed Case Literals

$
0
0
Author: Roy Ware
Subject: Summing on Mixed Case Literals
Posted: Tue Jan 03, 2017 10:18 pm (GMT 5.5)

I'm being held hostage by two database tables who refuse to compromise. One table has the City Name in Mixed Case letters: El Paso, for example. The second has the City Name in Uppercase letters: EL PASO.

The goal is to summarize the dollar amount field for each city, regardless of the case, with the mixed case being the desirable output, but showing the uppercase name in case a "matching" lowercase is not available.

Here's the data:
Code:
Mattoon                277.86
MATTOON                179.02
Charleston             801.13
POPLAR GROVE           354.03


The desired output is:
Code:
Mattoon                 456.88
Charleston              801.13
POPLAR GROVE            354.03


Of course, nothing like this has been attempted here before, so there aren't any examples and the SyncSort manual isn't much help. Any suggestions?


Viewing all articles
Browse latest Browse all 8500

Trending Articles