Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How can I sumsort the field S9(9) sign leading seperate.
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: 3158
Location: Tucson AZ

PostPosted: Tue May 05, 2009 5:02 pm    Post subject:
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 Moderator


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

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

Dharani,

If you look at:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us