Author: Bill Woodger
Subject: Reply to: match 2 files
Posted: Thu Nov 03, 2016 10:42 pm (GMT 5.5)
As long as at least one of your JOINKEYS files is of variable-length records, then you can create a variable-length REFORMAT record.
On the other hand, even if both your files are variable-length records you don't have to create a variable-length REFORMAT records.
You create a variable-length REFORMAT record by including the RDW from one input file which contains variable-length records.
You have to consider short records (they will be padded, you have control over with what) and may need a VLTRIM on some of the OUTFILs.
Subject: Reply to: match 2 files
Posted: Thu Nov 03, 2016 10:42 pm (GMT 5.5)
As long as at least one of your JOINKEYS files is of variable-length records, then you can create a variable-length REFORMAT record.
On the other hand, even if both your files are variable-length records you don't have to create a variable-length REFORMAT records.
You create a variable-length REFORMAT record by including the RDW from one input file which contains variable-length records.
Code: |
REFORMAT FIELDS=(F2:1,4,F1:5,80,F2:5) |
You have to consider short records (they will be padded, you have control over with what) and may need a VLTRIM on some of the OUTFILs.