|
Post by mueh on May 14, 2019 4:09:23 GMT -5
Hi ! Sort file 21 12 33 Sort 2 D results in 12 21 33 Found no Change in _Tabdata LTxtSort Method and _PCmdSORT. Could it have to do with D Literal support added in 10.2 since no Problem in 10.1.9014 ? Thanks
|
|
|
Post by George on May 14, 2019 9:25:25 GMT -5
MUEH: Just tried your specific sample. Both A and D, sorting on either col 1 or 2 seem to work just fine (V10.2.19129)
??
Correct, there were no changes to SORT, and D-literal support only affects Find/Change, SORT has no interaction with any of that logic.
George
|
|
|
Post by mueh on May 14, 2019 11:04:40 GMT -5
Sorry George ! Found that COLLATE EBCDIC was in 10.2 DEFAULT Profile .
|
|
|
Post by mueh on May 14, 2019 11:22:54 GMT -5
Hi Robert ! It must have been my fault because some time ago i tested with COLLATE . The data of file and result i entered are correct without a blank .
|
|
|
Post by George on May 14, 2019 12:21:31 GMT -5
Yes, a D sort of EBCDIC data seems to get messed up. It has to be the way the Collate table is built and passed to the PB ARRAY SORT, in combination with how I Invert the key for D fields. (I just XOR each byte with X'FF')
Frankly this is getting a bit more brain-busting than I can manage. I'll put this on my To-Do list, way down at the bottom, where I'll get to it real soon.
If anyone else wants to work on it and figure it out, the source is all out there on the web site.
George
|
|
|
Post by George on May 14, 2019 14:48:32 GMT -5
OK Robert, thanks. This kind of thing makes my head spin. I'll give it a try.
George
|
|
|
Post by George on May 15, 2019 9:53:28 GMT -5
Robert: Tried it. Still mucked up with COLLATE EBCDIC and Descending sort. George.
|
|
|
Post by George on May 15, 2019 13:33:10 GMT -5
I did the change to sInvert as you requested, so it no longer is doing the XOR style inversion. I assume you now want the sInvert to go back to XOR?
George
|
|
|
Post by George on May 15, 2019 14:01:02 GMT -5
OK, I'll have another go.
George
[Update]
BINGO !!
George
|
|
|
Post by mueh on May 16, 2019 2:34:19 GMT -5
My deep admiration on how you solved it . Many Thanks
|
|
|
Post by George on May 16, 2019 9:50:04 GMT -5
Robert: I doubt many of us understand just what's happening in there, so glad you managed to get it working.
George
|
|
|
Post by George on May 16, 2019 13:03:36 GMT -5
As I read your explanation my .. eyes .. slowly .. glaze .. over!
Impressive mental gymnastics.
George
|
|