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

SYNCSORT sum field error: ILLEGAL SUM DATA FIELD


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

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Fri Jun 15, 2007 4:15 pm
Reply with quote

I wrote the JCL like following code

Code:

//SORTIN DD DSN=aaa.PS.COBOL,DISP=SHR                           
//SORTOUT DD DSN=aaaa.PS.SSTO,DISP=(,CATLG,DELETE),           
//           SPACE=(TRK,(10,2)),UNIT=DISK
//SYSIN DD *                                                       
 SORT FIELDS=(1,8,CH,A)                                             
 SUM FIELDS=(10,3,BI)                                               
/*                                                                 
//                                                                 


it shown the, see below
Code:

PRODUCT LICENSED FOR CPU SERIAL NUMBER 2E0EC, MODEL 2094 710              LICE
SYSIN :                                                                       
 SORT FIELDS=(1,8,CH,A)                                                       
 SUM FIELDS=(10,3,BI)                                                         
WER276B  SYSDIAG= 578241, 831361, 831361, 1673320                             
WER164B  23,420K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,           
WER164B     0 BYTES RESERVE REQUESTED, 1,004K BYTES USED                     
WER146B  20K BYTES OF EMERGENCY SPACE ALLOCATED                               
WER213A  ILLEGAL SUM DATA FIELD                                               
WER108I  SORTIN   : RECFM=VB   ; LRECL=  4092; BLKSIZE=  4096                 
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jun 15, 2007 4:17 pm
Reply with quote

Quote:
WER213A ILLEGAL SUM DATA FIELD

What does the manual say about message id WER213A
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Fri Jun 15, 2007 4:19 pm
Reply with quote

Raman,

From the post messages, I could see your IP file is a VB. Your sort card should look like -

Code:
SORT FIELDS=(5,8,CH,A)
SUM FIELDS=(14,3,BI)
Back to top
View user's profile Send private message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Fri Jun 15, 2007 4:25 pm
Reply with quote

Murali
sort card the stated position is 1st and ending position is 8 then i gave one space. so the sum filed stated from 10th position. upto three charaters
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Fri Jun 15, 2007 4:48 pm
Reply with quote

Raman,

Your original sort card is suitable for FB file. For VB, you need to add 4 to get the position.
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Fri Jun 15, 2007 5:09 pm
Reply with quote

Raman,

First 4 bytes for RDW.

Sorry I didn't put this in my earlier post.
Back to top
View user's profile Send private message
galecra

New User


Joined: 11 Sep 2006
Posts: 33

PostPosted: Sat Jun 21, 2008 2:58 am
Reply with quote

BI fields have to be 2,4 or 8 bytes long when using SUM
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top