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

SYNCSORT: WER230A OUTREC FIELD OUTSIDE RANGE


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

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Mar 09, 2009 3:04 am
Reply with quote

I'm using the following sort card:

Code:

//SORTOUT  DD DSN=AB.OUTPUT,               
//            DISP=(NEW,CATLG,DELETE),                       
//            SPACE=(CYL,(300,100),RLSE)
//*                                                           
//SYSIN    DD *                                               
 SORT FIELDS=COPY                                             
 OUTREC FIELDS=(1,295,296:299,6,302:308,6,308:317,6,314:326,6,
                320:335,6,326:344,6,332:353,6,               
                338:371,6,350:380,169)


The message I am getting is : WER230A OUTREC FIELD OUTSIDE RANGE. The input file is of 519 bytes, and the output is 600 bytes.

Can someone advise ?

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 09, 2009 3:24 am
Reply with quote

Hello,

From what has been posted, there is nothing to indicate an output length of 600?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Mar 09, 2009 3:31 am
Reply with quote

Hi,

this takes you to an input LRECL of 548 and not 519
Code:
350:380,169)


Gerry
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Mar 09, 2009 3:39 am
Reply with quote

Hi,

Yes, the output length mentioned in FB is 600 and the OUTREC parameter is summing to 549. The question is if I change 169 to 100, it runs fine ( ofcourse only the 100 bytes of data is copied ).
Hence, it is not complaining for padding.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Mar 09, 2009 3:43 am
Reply with quote

Hi,

from 380 there are only 140 bytes to the end of the input record.


Code:
338:371,6,350:380,140,600:X) 



Gerry
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Mar 09, 2009 3:51 am
Reply with quote

My apologies..Not sure where my mind was..but I was assuming that first you mention input file position and then the output file.
Sorry about that...and thanks for the replies !
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 09, 2009 12:33 pm
Reply with quote

Hi,

Is your input file VB - (if so, there is a good possibility of a short record)?
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Mar 09, 2009 6:54 pm
Reply with quote

Hi,

No, it is FB.

Thanks
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Mon Mar 09, 2009 8:47 pm
Reply with quote

ap_mainframes wrote:
My apologies..Not sure where my mind was..but I was assuming that first you mention input file position and then the output file.
Sorry about that...and thanks for the replies !

It should be the reverse. You specify the desired output position, followed by the position and length from the input.
Code:
350:380,169)

This statement says that in the output file, at position 350, you want to place the data from the input which was in position 380 for the length of 169.

Let us know if you require any further assistance.
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 To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top