On Tue, 1 Jul 2014 11:42:46 -0700, Frank Swarbrick wrote:

>We have a file that is uploaded in to a VB sequential file.� We then copy it 
>to a KSDS.� The input file should be in key order (first 9 bytes), but lately 
>its been created (not sure how at this time!) occasionally with blank lines.� 
>I'm thinking to use DFSORT to omit the blank lines (lines with LRECL=0), but I 
>can't quite get it working.� I've tried using VLSHRT and VLSCMP in various 
>combinations and haven't hit upon the correct parameters to specify.� Anyone 
>have any thoughts?


It doesn't have to be DFSORT necessarily.� Could be IEBGENER or DITTO.� But I 
figured DFSORT would be the most likely tool to have the option I'm looking for.
 
sed -n /[^ ]/p input-file >output-file  # (untested, but surely close.)

(I think John M. has an even simpler awk command.)

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to