Pedro wrote:... Copy the VBS to a VB data set. And then read the VB file with rexx. Yes, you might lose some really long records, but there are not that many of them.
That will work, but the output data set can be large. Just as an experiment I copied RECFM=VBS, LRECL=32767 to RECFM=VB, LRECL=32752, BLKSIZE=32760. Didn't lose anything, but "LONGEST RECORD WAS 32750." Worse, the input data set used 11604 tracks and the output data set was 19969 tracks. The other potential trouble is the odds are long you'll lose type 30 records if you discard all long records.