At 13:28 +0000 on 02/14/2014, Chase, John wrote about Re: WER027A
control field beyond record:
> -----Original Message-----
From: IBM Mainframe Discussion List On Behalf Of Micheal Butz
Seems like one of my sort fields maybe beyond a short record
Anything I can do about this
DFSORT has an OPTION VLSHRT to handle that situation. I'm confident
that Syncsort has something similar if not identical.
-jc-
I agree. If you are going to allow short fields, you need a way to
note that this will occur OR you need to throw an error (not silently
ignore the situation) when encountered. If you want to make accepting
short records a default action (by doing something like I describe in
my next paragraph) AT LEAST issue a warning level alter (even if you
do not issue a non-zero return code). Otherwise abort the sort and/or
throw a non-zero return code.
For purposes of doing the actual sorting, all that is needed is for
the sort to add a constant field to the sort fields it associates
with each record when the record is shorter than the end of the last
listed sort field in the SORT command. This would not affect the
record being output and since the added content is a constant the
sort order will be the same as if the record was long enough to
contain this field.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN