hyuzen
New User
Joined: 10 Jul 2005 Posts: 58
|
|
|
|
Hi all,
I would like to sum some numbers using DFSORT in a FB file whose LRECL=80. There are two digits after comma and u can assume their position. For example how I sum those numbers:
12,05
195,00
2314,26
0,10
79,19
Thanks in advance,
hyuzen |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use the DFSORT job below to sum up all of the numbers. You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's UFF format. Only DFSORT has this function, so if you don't have DFSORT, you won't be able to use it. If you do have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see:
Use [URL] BBCode for External Links
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(TOT=(1,11,UFF,EDIT=(IIIIIIIT,TT)))
|
SORTOUT will have:
|
|