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

What's wrong with my SYNCSORT job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Oct 03, 2007 9:24 pm
Reply with quote

Hi Please suggest me what went wrong with my job.
I am getting an abend of U0016.
Here are the details.
Code:

//SORT     EXEC PGM=SORT
//SORTLIB  DD DSN=SYSTEM.SORTLIB,DISP=SHR                             
//SYSOUT   DD SYSOUT=*                                               
//SYSLST   DD  SYSOUT=*                                             
//SORTWK01 DD UNIT=DISK,SPACE=(CYL,(15,2),RLSE)                     
//SORTIN   DD  DSN=SMANDAP.INPUT.TEST,DISP=OLD             
//SORTOUT  DD DSN=SMANDAP.OUTPUT.TEST,DISP=(NEW,CATLG,DELETE),     
//         DCB=(RECFM=FB,LRECL=100,BLKSIZE=1900),                   
//         SPACE=(CYL,(15,2),RLSE),UNIT=DISK                         
//SYSIN    DD  *                                                     
 SORT FIELDS=(15,9,A,24,2,A,13,1,A,31,2,A,82,3,A,37,3,A,9,4,A,91,4,A,
              28,3,A,71,1,A,7,2,A,26,2,A),                           
              FORMAT=CH                                             
 SUM FIELDS=(73,09,ZD)                                               
//*                                                                 


And the messages are

Code:
SYSIN :                                                                 
 SORT FIELDS=(15,9,A,24,2,A,13,1,A,31,2,A,82,3,A,37,3,A,9,4,A,91,4,A,   
              28,3,A,71,1,A,7,2,A,26,2,A),                             
              FORMAT=CH                                                 
 SUM FIELDS=(73,09,ZD)                                                 
WER276B  SYSDIAG= 4160, 77275, 77275, 366399                           
WER164B  6,044K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,     
WER164B     0 BYTES RESERVE REQUESTED, 5,272K BYTES USED               
WER146B  20K BYTES OF EMERGENCY SPACE ALLOCATED                         
WER108I  SORTIN   : RECFM=FB   ; LRECL=   100; BLKSIZE=  6400           
WER110I  SORTOUT  : RECFM=FB   ; LRECL=   100; BLKSIZE=  1900           
WER410B  5,016K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,
WER410B     0 BYTES RESERVE REQUESTED, 5,016K BYTES USED               
WER036B  G=24256                                                       
WER177I  TURNAROUND SORT PERFORMED                                     
WER045C  END SORT PHASE                                                 
WER055I  INSERT          0, DELETE      19222                           
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                           
WER049A  SUM FIELD OVERFLOW                                             
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 03, 2007 9:30 pm
Reply with quote

Where does it say that it abended U0016 ?

Are you sure it was this step that abended ?
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Oct 03, 2007 9:35 pm
Reply with quote

Yes I'm Sure.
See the following message that I got.
Code:
SORT - COMPLETION CODE - SYSTEM=000 USER=0016 REASON=00000000
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 03, 2007 9:39 pm
Reply with quote

Long ago I used to have a U0016 often and mostly a wrong recordlength was the cause.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 03, 2007 9:40 pm
Reply with quote

But this one could be because of the following:
Quote:
Code:
WER049A  SUM FIELD OVERFLOW
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Oct 03, 2007 9:41 pm
Reply with quote

Simple:
WER049A SUM FIELD OVERFLOW
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 03, 2007 9:41 pm
Reply with quote

I am no syncsort expert, just a good reader of posts...

the last line of Your output says

Quote:
WER049A SUM FIELD OVERFLOW


worth investigating

regards

e.s
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 04, 2007 2:43 am
Reply with quote

William Thompson wrote:
Simple:
WER049A SUM FIELD OVERFLOW


Beat ya icon_wink.gif
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 04, 2007 2:44 am
Reply with quote

enrico-sorichetti wrote:
I am no syncsort expert, just a good reader of posts...

the last line of Your output says

Quote:
WER049A SUM FIELD OVERFLOW


worth investigating

regards

e.s


Beat you too icon_wink.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Oct 04, 2007 3:47 am
Reply with quote

Bitneuker wrote:
William Thompson wrote:
Simple:
WER049A SUM FIELD OVERFLOW


Beat ya icon_wink.gif
Ha! It took you two replies.....Wat's a'matta, missed it the first time....giggle....
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Thu Oct 04, 2007 5:44 am
Reply with quote

hi,

can you tell what is the record length of the file on which you are doing the sort..
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Oct 04, 2007 5:35 pm
Reply with quote

santhoshm
Code:
WER049A  SUM FIELD OVERFLOW

To avoid overflow, you need to incresse the length of the field that you are summing using the INREC option and then SUM them up.
Note: this may end up in increasing your o/p file length.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 5:58 pm
Reply with quote

OR

make sure that your SUM value never crosses 999,999,999.
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Fri Oct 05, 2007 9:45 am
Reply with quote

From the manuals......

If arithmetic overflow or underflow occurs during the summing of two records, those
records are not summarized and neither record is deleted. Further processing is
determined by the option selected at installation through the SUMOVFL parameter or
the run time parameter OVFLO. If the RC16 option of this parameter has been
selected, processing will terminate with a WER049A critical error. For the RC0 (the
delivered default) or the RC4 option, sum processing will continue and a WER049I
message will be issued (only for the first occurrence). If a subsequent pair of records
with equal control fields can be summarized without causing overflow or underflow,
they will be summarized. To avoid arithmetic overflow, use the INREC control
statement to insert zeros of the proper format immediately before the sum field. For
example, for a PD field, use nZ to insert binary zeros.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
Search our Forums:

Back to Top