Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ADDING TOTALS FOR A PIC(X) FIELD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: ADDING TOTALS FOR A PIC(X) FIELD
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

Site Director


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

PostPosted: Fri Nov 12, 2010 10:51 am    Post subject:
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: 2285
Location: @my desk

PostPosted: Fri Nov 12, 2010 11:51 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us