MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

S0C7 while using sort utility

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed May 27, 2009 6:16 am    Post subject: S0C7 while using sort utility Reply with quote

Hi All,

When i tried to run the below sort job it was going down with S0C7. I am tring to sum the amounts. Please tell me how to resolve this

Code:


//JSTY0010 EXEC PGM=SORT   
//SORTIN01 DD * 
SIVA  01    403119.72   
RAMA  01   1515266.57
SIVA  01    392683.04
/*       
//SORTOUT  DD SYSOUT=* 
//SYSIN    DD *         
  MERGE FIELDS=(06,02,CH,A)
  SUM FIELDS=(12,10,ZD)   
  OUTREC FIELDS=(1:07,2,5:13,11)
/*                   
//SYSOUT   DD SYSOUT=* 



Thanks,
Siva
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed May 27, 2009 7:06 am    Post subject: Reply with quote

maybe, your 'amounts' in 12 for 10 are not ZD.

define them differently in your SUM card.
Maybe UFF?
I don't know the answer but if you look in the manual...
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 27, 2009 10:09 am    Post subject: Reply with quote

sivafdms,

The sort step has so many problems.

1. You Amounts fields are NOT ZD , they are UFF format. You canNOT use UFF format in SUM statement
2. You are merging on the key 6,2 and in the output you are writing 7,2, and the sum statement is summing 12,10 and you are writing 13,11? . Does that even make sense?

If you want sum amounts with embedded decimal point and spaces then search the forum for UFF (no sign) SFF (signed)
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group