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

ADDING TOTALS FOR A PIC(X) FIELD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nehansh

New User


Joined: 12 Nov 2010
Posts: 2
Location: bangalore

PostPosted: Fri Nov 12, 2010 10:15 am
Reply with quote

Hi

I am using the SORT utility to get the sum of a particular field in my input file.
After some research on this forum I came up with :

SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,NODETAIL,REMOVECC,
TRAILER1=(C'000010010', *XMIT-FILE-ID
COUNT=(PD,LENGTH=06), *XMIT-REC-CT INTEGER
TOT=(72,16,C))

Does this work for alphanumeric fields too is what I would like to know.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Nov 12, 2010 10:51 am
Reply with quote

Hello and welcome to the forum,

Which release of which sort product is used on your system?

Quote:
Does this work for alphanumeric fields too is what I would like to know.
No, fields must be numeric to be totaled.

How would "adding" names be of any value?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Nov 12, 2010 11:51 am
Reply with quote

If you have only numeric values in that field, yes, you can.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top