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

Calculate SUM TOTAL for a PIC(X) field


IBM Mainframe Forums -> DFSORT/ICETOOL
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:59 am
Reply with quote

Hi

I am new to this forum and to mainframes for that matter. Hoping to get the neede help and support.

My query is as follows:

I need to calculate the sum total of an alphanumeric field in my input file. 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))

Will this work or the fields need to be compulsarily PD or ZD??
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Nov 12, 2010 11:37 pm
Reply with quote

It's not clear from your description what you're trying to do.

Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top