View previous topic :: View next topic
|
Author |
Message |
hcl_ln
New User
Joined: 14 Sep 2005 Posts: 21
|
|
|
|
Hi,
I have a VB file (LRECL=9917 including the 4 bytes).
I am trying to move zeroes to the positions 279-284 and 285-290 (with field defined are S9(9)99 COMP-3) and the rest of the input file as it is.
So, my code is as follows:
Code: |
OUTFIL OUTREC=(1:1,278,
279:6Z,
285:6Z,
291:18X,
309:309,2,
311:311,9603) |
I am getting the error as:OUTREC is shorter in length.
Do I need to mention the RDW in the SORT also? If so how?
Can somebody help? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
What is the exact error message you're receiving (message number and full text)? |
|
Back to top |
|
|
hcl_ln
New User
Joined: 14 Sep 2005 Posts: 21
|
|
|
|
Here is the exact error message Frank.
Code: |
WER108I SORTIN : RECFM=VB ; LRECL= 9917; BLKSIZE= 27998
WER110I SORTOUT : RECFM=VB ; LRECL= 9917; BLKSIZE= 27998
WER244A SORTOUT OUTREC - SHORT RECORD
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000 |
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
The WER messages indicate you're using Syncsort, not DFSORT. Superk has moved your thread to the JCL Forum. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
hcl_ln,
If you do not have any records shorter than 311, then you can use the following:
Code: |
OUTFIL OUTREC=(1:1,278,
279:6Z,
285:6Z,
291:18X,
309:309,2,
311:311)
|
However, if you do not know the length of your shortest record, you can use HISTOGRM to determine this. |
|
Back to top |
|
|
|