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

Find the total of this field in SYSOUT


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

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Nov 13, 2014 2:59 pm
Reply with quote

Hi,

I have the alphanumeric field with numeric data and 2 decimal points along with leading sign. I just need the total of this field in SYSOUT. No need of any key or sorting.


I/P
+0000000000000164.00
+0000000000000001.00
+0000000000000002.00

O/P

+0000000000000166.00


Could anyone help with the sort card for this. I tried searching in forum but all had sort on key which i donot want.
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 Nov 13, 2014 3:28 pm
Reply with quote

Just use OPTION COPY or SORT FIELDS=NONE in place of the SORT.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Nov 13, 2014 3:36 pm
Reply with quote

Yes, but what will be the sortcard to change the alphanumeric to numeric and then put the total in sysout.
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 Nov 13, 2014 4:16 pm
Reply with quote

Well, I was thinking if you'd found something with what you want but it had a SORT, then the advice may get you going with it.

Have a look at data-type SFF, and OUTFIL reporting functions, REMOVECC, NODETAIL, TRAILER1 with TOT/TOTAL and EDIT=.
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 Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Sorting Date Field DFSORT/ICETOOL 4
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
No new posts Compare 2 alphabets in a REXX and fin... CLIST & REXX 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top