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

how to sum data in dataset using JCl?


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

New User


Joined: 15 Dec 2004
Posts: 4
Location: india

PostPosted: Wed Dec 15, 2004 11:47 am
Reply with quote

FILE HAS SOME RECORDS HAVING NUMERIC FIELD.
I WANT TO SUM UP THESE FIELDS USING JCL ONLY....

I FIND ONE OPTION AS
SUM FIELDS=NONE
BUT I AM NOT VERY SURE ABOUT IT'S APPLICATION IN PROGRAMMING.

PLEASE HELP ME OUT AS SOON AS POSSIBLE..IT'S URGENT...
Back to top
View user's profile Send private message
lramani

New User


Joined: 03 Nov 2004
Posts: 21
Location: NOIDA, India

PostPosted: Wed Dec 15, 2004 3:37 pm
Reply with quote

hi sandiagee,
The SUM FIELDS=NONE that u r talking about will remove Duplicates.
u could use SUM FIELDS=(N1,N2,ZD)

N1= position
N2= length
Back to top
View user's profile Send private message
sandiagee

New User


Joined: 15 Dec 2004
Posts: 4
Location: india

PostPosted: Thu Dec 16, 2004 11:05 am
Reply with quote

HI..
Thanks for your valuable answer.
we have tried with this...and got another query...
How to see the output of sum then..
Cause we are specifing any output variable which can store this Sum.

Can u send entire JCL?

Thanks,
Sandy.
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 Store the data for fixed length COBOL Programming 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top