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

How can I sumsort the field S9(9) sign leading seperate.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nagarajan.dharani

New User


Joined: 27 Dec 2006
Posts: 36
Location: Chennai

PostPosted: Tue May 05, 2009 4:47 pm
Reply with quote

Hi,

How can I sumsort the field which is delared as S(9) sign Leading Seperate.
For example, the field starting position is 208 and length is 12.

When I give SUM FIELDS=(208,12,ZD) it is giving S0C7
When I gove SUM FIELDS=(207,11,ZD) it is not considering the '-' sign and only it is summing up the value.

Kindly help me.

Thanks,
Dharani.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 05, 2009 5:02 pm
Reply with quote

Have you looked at SFF (signed free form numeric)?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue May 05, 2009 9:00 pm
Reply with quote

Dharani,

If you look at:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/C.3?DT=20080528171007

you will see that S(9) LEADING SEPARATE is equivalent to DFSORT's FS format. You can't use that directly in SUM. You can convert the FS value to ZD, SUM it and convert it back to FS. However, it might be easier to use OUTFIL SECTIONS/TRAILER3/TOT with FS instead.

If you show me an example of your input records and what you want for output, I can show you how to do what you want.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top