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
 

 

Find the total of this field in SYSOUT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Find the total of this field in SYSOUT
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7313

PostPosted: Thu Nov 13, 2014 3:28 pm    Post subject: Reply to: DF Sort
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7313

PostPosted: Thu Nov 13, 2014 4:16 pm    Post subject: Reply to: DF Sort
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    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 Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 2 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


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