Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
SYNCSORT output values gives me some junk number
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
teevijay

New User


Joined: 20 Mar 2006
Posts: 22

PostPosted: Tue Jul 08, 2008 7:17 pm    Post subject:
Reply with quote

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
View user's profile Send private message
References
PostPosted: Tue Jul 08, 2008 7:17 pm    Post subject: Re: Reply with quote

Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 121
Location: Chennai

PostPosted: Tue Jul 08, 2008 7:26 pm    Post subject:
Reply with quote

AFAIK we used FI as the field was signed. This has nothing to do with the SUM FIELDS OVERFLOW problem.
Back to top
View user's profile Send private message
teevijay

New User


Joined: 20 Mar 2006
Posts: 22

PostPosted: Tue Jul 08, 2008 7:30 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 983
Location: Virginia, USA

PostPosted: Tue Jul 08, 2008 7:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 121
Location: Chennai

PostPosted: Tue Jul 08, 2008 7:57 pm    Post subject:
Reply with quote

Try this in sum fields.


Code:

SUM FIELDS=(139,8,FI)
Back to top
View user's profile Send private message
teevijay

New User


Joined: 20 Mar 2006
Posts: 22

PostPosted: Tue Jul 08, 2008 7:57 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 121
Location: Chennai

PostPosted: Tue Jul 08, 2008 8:05 pm    Post subject:
Reply with quote

AFAIK you shouldn't have any problems of overflow now. Have you tested this with FI yet?
Back to top
View user's profile Send private message
teevijay

New User


Joined: 20 Mar 2006
Posts: 22

PostPosted: Tue Jul 08, 2008 8:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Vasukip
Currently Banned

New User


Joined: 17 Jun 2008
Posts: 49
Location: Chennai

PostPosted: Wed Jul 09, 2008 3:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2