export fixed length problem
Dennis Malen
dmalen at malen.com
Tue Nov 16 13:39:43 PST 2004
The Problem:
I am using a fixed length export command where the first field is defined as a length of 10. Whenever the processing is run instead of the first field retaining its defined 10 characters, the values are pushed to the left. In other words, the first field is defined as a(10). I just changed it to a(10,*) and that does not work. The value that is picked up is a record number so that the field contains all numbers. All the other fields after the first field retains their values.
Request:
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?
Thanks,
Dennis Malen
516.479.5912
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.celestial.com/pipermail/filepro-list/attachments/20041116/863de83f/attachment-0001.html
More information about the Filepro-list
mailing list