# Syncsort - SUM

Author Message
saurabh39
Warnings : 1

Active User

Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

Posted: Thu Feb 13, 2014 11:55 am

All,

I have following input data -

 Code: //SORTIN DD * 2E2B3C 0E2B3C 0E2B3C

The syncsort card is -
 Code: SORT FIELDS=(3,4,CH,A) SUM FIELDS=(1,2,ZD)

The output is

 Code: 352B3C

Instead of output as X'F3F5' i want it to be X'F3C5'. Basically i want to retain the sign nibble as C. How can I achieve it in sort. One way I can think of is using overlay, if last digit is 0, overlay it by X'C0' so and so forth, but is there any other way apart from that.
Bill Woodger

Moderator Emeritus

Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

 Posted: Thu Feb 13, 2014 12:36 pm Have you thought to consult your SyncSort manual to understand this behaviour and discover how to modify it?
saurabh39
Warnings : 1

Active User

Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

 Posted: Thu Feb 13, 2014 1:33 pm @bill - Yes I did check my manual(Syncsort 1.2, programmer's guide). The manual doest have any information about signed nibble or I am not able to locate it.
Bill Woodger

Moderator Emeritus

Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

 Posted: Thu Feb 13, 2014 1:51 pm It doesn't say anything about ZDPRINT? That surprises me. Send your copy back to SyncSort and get a fresh one, something seems to have fallen off the page.
saurabh39
Warnings : 1

Active User

Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

Posted: Thu Feb 13, 2014 2:14 pm

@Bill - Thanks bill. I missed the ZDPRINT part.

Below is the way to use it -
 Code: //\$ORTPARM DD *    NZDPRINT /*

or
 Code: EXEC=SORT,PARM='NZDPRINT'
 View Bookmarks All times are GMT + 6 Hours

 Topic Forum Replies Similar Topics SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13 Syncsort- Merging two records into on... SYNCSORT 3 Numeric check w/SyncSort. SYNCSORT 1 Last day of the month via SYNCSORT. SYNCSORT 5 SYNCSORT Error - CONTROL FIELD BEYOND... SYNCSORT 10
Search our Forums: