Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: RE: Conversion of a VB file to FB.

$
0
0
Author: Bill Woodger
Subject: Reply to: Conversion of a VB file to FB.
Posted: Mon Oct 31, 2016 11:49 pm (GMT 5.5)

Code:
 OUTFIL VTOF,
        IFTHEN=(WHEN=INIT,
                 OVERLAY=(137:X)),
        IFTHEN=(WHEN=INIT,
                 BUILD=(5,132))


That will extend all our records (if needed) to 132 bytes of data. The 137th byte of the input (which you don't need) is clobbered to space. Anything from the original end of record up to the 137th position will be padded with blanks.

You can then use the 132 bytes of data, which will contain trailing spaces, not parts of the next records as you've done so far.

Probably the LRECL is a red-herring. You've probably just got print lines without trailing spaces.


Viewing all articles
Browse latest Browse all 8500

Trending Articles