|
|
| Author |
Message |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
One more clarification,
Do i really need to convert a BI field to FI to avoid a SUM FIELDS OVERFLOW ?
Thanks,
Vijay |
|
| Back to top |
|
 |
References
|
Posted: Tue Jul 08, 2008 7:17 pm Post subject: Re: |
 |
|
|
 |
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 121 Location: Chennai
|
|
|
|
| AFAIK we used FI as the field was signed. This has nothing to do with the SUM FIELDS OVERFLOW problem. |
|
| Back to top |
|
 |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Then it doesnt solve my problem.
Pls let me know, how to overcome a SUM FIELDS OVERFLOW for a BI field
Solution could be to convert it into a PD field and then do a SUM on it.
---> How do i do it ?
Any other solutions ?
Thanks.
Vijay |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 983 Location: Virginia, USA
|
|
|
|
| teevijay wrote: |
Then it doesnt solve my problem.
Pls let me know, how to overcome a SUM FIELDS OVERFLOW for a BI field
Solution could be to convert it into a PD field and then do a SUM on it.
---> How do i do it ?
Any other solutions ?
Thanks.
Vijay |
1. IT IS NOT A BI FIELD it is an FI field.
2. When you use a signed binary field that is negative (even a small value) as an unsigned field it will be treated as a very large number. |
|
| Back to top |
|
 |
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 121 Location: Chennai
|
|
|
|
Try this in sum fields.
| Code: |
SUM FIELDS=(139,8,FI) |
|
|
| Back to top |
|
 |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Craq,
you mean to say that instead of using BI, i should use FI ?
SUM FIELDS = (139,8,FI) would do to eliminate the overflow ?
Thanks,Vijay |
|
| Back to top |
|
 |
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 121 Location: Chennai
|
|
|
|
| AFAIK you shouldn't have any problems of overflow now. Have you tested this with FI yet? |
|
| Back to top |
|
 |
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Thanks Craq and Manu.
I have tested for few sample records and now running it for the entire file of over 20 M records.
Wll keep you posted about the results.
Thanks again.
Vijay |
|
| Back to top |
|
 |
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 49 Location: Chennai
|
|
|
|
| teevijay wrote: |
Thanks Manu,
i just gave this as a test
SORT FIELDS=COPY,STOPAFT=10
OUTREC BUILD=(139,8,FI,EDIT=(STTTTTTTTTTTTTTTTTT),SIGNS=(,-))
SUM FIELDS=(139,8)
just as a clarification, is the above thing correct !? |
Hi,
here in SUM FIELDS statement you gotta give format Type i.e BI or ZD
SUM FIELDS=(139,8,BI) or SUM FIELDS=(139,8,ZD) |
|
| Back to top |
|
 |
|
|