G
GBA
the issue is maintaining a field size where there is a null and padding with
spaces where the data is less that the field size....current write to ascii
just writes whatever data is there and doesn't maintain any fixed field sizes
with spaces. which doesn't surprise me.
I can write vb to pad each field as part of the ascii file vb creation in
memory; but field by field that is a ton of repetitive code. there's ~ 120
fields that all need fixed size. but that still may be the way to go. just
thought I would seek a sanity check from y'all....
I have experimented with the export specification approach - and that sets &
maintains the field sizes very nicely with spaces when there is no data -
which is what the recipient requires. But now, because I have 2 queries - I
have 2 ascii files. No way to merge those two queries as they are totally
different. So I wonder about the ease of perhaps merging ascii text from 2
ascii files. I have never merged ascii files. Perhaps it is easy.
Have no idea what syntax, references etc one uses in a situation like this
or whether there is some 'gotchas' I do not yet know about. Would welcome
input from someone whom has trod this path before....TIA.
spaces where the data is less that the field size....current write to ascii
just writes whatever data is there and doesn't maintain any fixed field sizes
with spaces. which doesn't surprise me.
I can write vb to pad each field as part of the ascii file vb creation in
memory; but field by field that is a ton of repetitive code. there's ~ 120
fields that all need fixed size. but that still may be the way to go. just
thought I would seek a sanity check from y'all....
I have experimented with the export specification approach - and that sets &
maintains the field sizes very nicely with spaces when there is no data -
which is what the recipient requires. But now, because I have 2 queries - I
have 2 ascii files. No way to merge those two queries as they are totally
different. So I wonder about the ease of perhaps merging ascii text from 2
ascii files. I have never merged ascii files. Perhaps it is easy.
Have no idea what syntax, references etc one uses in a situation like this
or whether there is some 'gotchas' I do not yet know about. Would welcome
input from someone whom has trod this path before....TIA.