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: WER230A OUTREC FIELD OUTSIDE RANGE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT: WER230A OUTREC FIELD OUTSIDE RANGE
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

Site Director


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

PostPosted: Mon Mar 09, 2009 3:24 am    Post subject:
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: 1703
Location: Australia

PostPosted: Mon Mar 09, 2009 3:31 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Mon Mar 09, 2009 3:43 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Mar 09, 2009 12:33 pm    Post subject:
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    Post subject: Reply to: SYNCSORT: WER230A
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: 500
Location: USA

PostPosted: Mon Mar 09, 2009 8:47 pm    Post subject:
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    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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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