export fixed length problem

Dennis Malen dmalen at malen.com
Tue Nov 16 14:53:18 PST 2004


Ken,

RC is the record number which is taken from field 1. Instead of using RC I
have also used field 1 with the same result. Field one is a numeric field in
the subject file.

I have used a(10)=1 and a(10)=rc. The processing for RC is:

rc(10)=1

The next line is a(10)=rc. They are both defined as a length of 10
characters. Could the problem be the fact that field 1 is defined as (6,.0)
and it always retains the ".0" definition. Therefore it becomes right
justified and even though I am using a(10) or a(10,*) it still retains its
right justification.

Perhaps the question is how I can left justify the field?

Dennis Malen
516.479.5912

----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at bestweb.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Tuesday, November 16, 2004 4:49 PM
Subject: Re: export fixed length problem


> Dennis Malen wrote:
> [...]
> > I do I get my processing on the first field at the beginning of the line
to
> > retain its defined size of 10 characters.
> >
> > Here is the processing that I consider relevant:
> >
> > pn="/tmp/C"{nx{".wp"
> >
> > export ascii rnf=(pn) -a
> >
> > a(10,*)=rc;b(9)=sm;c(40)=ww;d(40)=ms;e(40)="";f(40)=mc;g(2)=me
> >
> > rnf(1)=a&b&c&d&e&f&g&h&chr("10");ct=ct+"1";write rnf           'IS THE
PROBLEM
> > ON THIS LINE??
> > Note: a(10,*), why can't it retain its value of 10 characters?
>
> Zip up and attach a sample export file of a few records.  Without seeing
> the actual export, we can only guess.
>
> What is in field rc for the included records?  (Include any leading and
> trailing spaces in your description.)
>
> -- 
>
+-------------------------+--------------------+----------------------------
-+
> | Kenneth J. Brody        | www.hvcomputer.com |
|
> | kenbrody/at\spamcop.net | www.fptech.com     | #include
<std_disclaimer.h> |
>
+-------------------------+--------------------+----------------------------
-+
> Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
>
>
>
>




More information about the Filepro-list mailing list