I am attempting to join 2 files by key, in the output I want to include elements from both files but also want to insert spaces in some areas.
For example:
File 1 contains this record:
023 123 Main Street
File 2 contains this record:
023 Joe Smith
If 023 was the key value, I am joining these two files and would want to create the following record:
023 (many spaces) Joe Smith (many spaces) 123 Main Street
The following statement would combine the data properly, but not in the format I desire.
REFORMAT FIELDS=(F2:1,13,F1:5,15)
Is there a way to add spaces or to indicate where I want each field to begin? I know in a standard sort, you can specify the output position in the OUTFIL OUTREC statement, or use the X to represent a blank (or #X for multiple blanks).