IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort - SUM


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Thu Feb 13, 2014 11:55 am
Reply with quote

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.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


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

PostPosted: Thu Feb 13, 2014 12:36 pm
Reply with quote

Have you thought to consult your SyncSort manual to understand this behaviour and discover how to modify it?
Back to top
View user's profile Send private message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Thu Feb 13, 2014 1:33 pm
Reply with quote

@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.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


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

PostPosted: Thu Feb 13, 2014 1:51 pm
Reply with quote

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.
Back to top
View user's profile Send private message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Thu Feb 13, 2014 2:14 pm
Reply with quote

@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'
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top