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
 

 

Why sumfields are used?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Why sumfields are used?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 30, 2009 2:46 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Mar 30, 2009 3:00 pm    Post subject:
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    Post subject:
Reply with quote

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

Senior Member


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

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

Hi,

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

For complete reference on SUM FIELDS in DFSORT, please check this link: http://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    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 how to code sumfields veera DFSORT/ICETOOL 1 Tue Dec 07, 2004 1:30 pm


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