Left-justify (was Re: Export fixed length)

Kenneth Brody KandLBrody at gmail.com
Thu Aug 11 07:26:04 PDT 2011


On 8/11/2011 10:18 AM, scooter6 at gmail.com wrote:
[...]
>    One more thing - how do you 'left justify, blank fill' a field?
>    I created a Global edit as such:
>
>    LJ =  {#}\ \<-- hoping the space between the \ would create
> blanks after the numbers

Note that "\X\" is the syntax for right-justification, using the given 
character for filler rather than spaces.  So, you are actually telling 
filePro to do the exact opposite of what you want -- your edit says 
"right-justify using spaces".

>    I'm creating a file that is fixed length - but the field can be a variety
> of numbers long -- but the fixed length is 17 characters
>    So I need to left justify, blank fill this field.....
>
>    That edit didn't work.......anyone have syntax for a left justify field?
[...]

Well, since you are probably doing this in processing anyway, why not just 
use processing to left-justify it?

Rather than:

     xx(20,lj) = foo

Just use:

     xx(20,*) = "" { foo

Of course, if you want an edit:

     lj   [{!" "!}] {*}

-- 
Kenneth Brody


More information about the Filepro-list mailing list