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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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