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
 

 

SYNCSORT sum field error: ILLEGAL SUM DATA FIELD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT sum field error: ILLEGAL SUM DATA FIELD
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 15, 2007 4:17 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Jun 15, 2007 4:19 pm    Post subject:
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    Post subject: Re: sum field error
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: 1439
Location: Bangalore,India

PostPosted: Fri Jun 15, 2007 4:48 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Jun 15, 2007 5:09 pm    Post subject:
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    Post subject:
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    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 Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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