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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top