Need help understanding RIGHT Padding in syncsort

482 Views Asked by At

I am using SyncSort to format a file. My requirement is to add RIGHT padding (trailing spaces to a field). Can you please suggest how to do this?

For Example:-

Value :- "15" ---> Output:- "15   "
Value :- "150" --> Output:- "150  "
1

There are 1 best solutions below

0
On
INREC IFOUTLEN=9,
      IFTHEN=(WHEN=INIT,OVERLAY=10:X)

You question does not really make sense in isolation. Either this is a small part of a larger task, and so may not suit, or you have a VB file with no trailing blanks. Or something else.

Unless you have a simple VB with just one field, in which case this code will work, please add what you have tried and what output it gave you.