Re: Spooling variable length output

From: Guy Dallaire <dallaire_at_megatoon.com>
Date: 1995/11/21
Message-ID: <48r8j2$3p8_at_jersey.megatoon.com>#1/1


chuckh_at_ix.netcom.com (Chuck Hamilton) wrote:

>Greg Hayes <greg_at_hayford.demon.co.uk> wrote:
 

>>If I want to spool the output from a select statment to a file
>>then I SET LINESIZE 338 let us say. However if the data in the
>>file is comma delimited (as in "abcd","defg","","1","sfgdtg"),
>>thenthe record is always 338 bytes long instead of 29 as in
>>the example above. Does anyone have a soution to this.
>>--

I'm affraid you'll have to resort to the operating system to delete the extra blanks at the end of the lines....

I bumped into the same kind of problem (on Open/VMS) and I had to use the OS to process the spooled file (with the F$EDIT(..., "TRIM") lexical function) in order to suit my needs...

  • God only knows if God exists... ***
Received on Tue Nov 21 1995 - 00:00:00 CET

Original text of this message