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

Why sumfields are used?


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

New User


Joined: 04 Dec 2008
Posts: 7
Location: bangalore

PostPosted: Mon Mar 30, 2009 2:27 pm
Reply with quote

Hi,

I have sort fields then if i give sum fields=none then those fields which are repeated wont de displayed. but if i give sum fields=(22,6,pd,28,2,pd) what does it means?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 30, 2009 2:46 pm
Reply with quote

Have you bothered to look in the manual
Back to top
View user's profile Send private message
pahi
Currently Banned

New User


Joined: 04 Dec 2008
Posts: 7
Location: bangalore

PostPosted: Mon Mar 30, 2009 2:56 pm
Reply with quote

Ya i have looked into the manual but i couldn't found much about sum fields, so can you tell where to search exactly?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 30, 2009 3:00 pm
Reply with quote

Hi,

Expat has given you the right direction:
Quote:
The SUM control statement deletes records with equal control fields and optionally summarizes specified numeric fields on those records. Equal keyed records are processed pair by pair. If numeric fields are to be summarized, the data in the summary fields are added, the sum is placed in one of the records, and the other record is deleted. Provided arithmetic overflow does not occur, the SUM control statement produces only one record per sort key in the output data set. The records deleted by sum can optionally be written to a separate dataset.
Usually, I remember it as "Set Under Mask".
Back to top
View user's profile Send private message
pahi
Currently Banned

New User


Joined: 04 Dec 2008
Posts: 7
Location: bangalore

PostPosted: Mon Mar 30, 2009 3:11 pm
Reply with quote

Thank you icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 30, 2009 5:12 pm
Reply with quote

Hi,

Hopefully we had been helpful . . . icon_smile.gif.

For complete reference on SUM FIELDS in DFSORT, please check this link: publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.icea100/sumnote.htm
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 how to code sumfields DFSORT/ICETOOL 1
Search our Forums:

Back to Top