View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
From what has been posted, there is nothing to indicate an output length of 600? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
this takes you to an input LRECL of 548 and not 519
Gerry |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Is your input file VB - (if so, there is a good possibility of a short record)? |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hi,
No, it is FB.
Thanks |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
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.
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 |
|
|
|