Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
try the 'output to' construct. you may want to set do an 'stty cols 200' prior
to launching isql/dbaccess. here is a shell script for example:
stty cols 300
isql system << EOF
output to "/tmp/systables.out" WITHOUT HEADING
select * from systablesEOF
stty cols 80
_______________________________________________________________________________
Subject: Selecting trailing blanks?
From: Spetc@aol.com@smtpsend at #EMAIL
Date: 3/11/96 8:02 PM
Apparently-To: RZBJ40@email.sps.mot.com
I want to create a file, using a select statement, which selects character
columns without clipping them (stripping of trailing blanks ). Unload strips
trailing blanks. I'm using a 4gl program at the moment because the report
PRINT statement inlcludes trailing blanks when it outputs character columns.
It is a frequent, varying, job and I would *much* rather do it with a simple
SQL statement, any ideas?
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.