Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What's wrong with my SYNCSORT job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: What's wrong with my SYNCSORT job
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 03, 2007 9:30 pm    Post subject:
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    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 03, 2007 9:39 pm    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 03, 2007 9:40 pm    Post subject:
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: 3158
Location: Tucson AZ

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Oct 03, 2007 9:41 pm    Post subject: Reply to: What's wrong with my SYNCSORT job
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 04, 2007 2:43 am    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 04, 2007 2:44 am    Post subject: Re: Reply to: What's wrong with my SYNCSORT job
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: 2150
Location: At my coffee table

PostPosted: Thu Oct 04, 2007 3:47 am    Post subject:
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: 309
Location: Vizag / US

PostPosted: Thu Oct 04, 2007 5:44 am    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 5:58 pm    Post subject:
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    Post subject: Reply to: What's wrong with my SYNCSORT job
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us