July 09, 2015, 01:21 PM
borgas[SOLVED] save column to string
Hello,
I want to save the rows of a table with a single column into a string, the values separated by commas.
for example
TABLE FILE CAR
PRINT
CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE HOLD AS CARS
-RUN
the result will be:
JAGUAR
JENSEN
DATSUN
MASERATI
TOYOTA
AUDI
TRIUMPH
ALFA ROMEO
BMW
PEUGEOT
if i use -READ CARS &CAR.A20.
i only get the first record
What I need is to save these values in a string separated with commas like:
JAGUAR,JENSEN,DATSUN,MASERATI,TOYOTA,AUDI,TRIUMPH,ALFA,ROMEO,BMW,PEUGEOT
How can i achive this.
Ricardo.
This message has been edited. Last edited by: <Kathryn Henning>, July 09, 2015, 01:56 PM
Danny-SRLThis might help...
-* File borgas01.fex
TABLE FILE CAR
SUM CAR
ACROSS CAR
ON TABLE HOLD FORMAT DFIX DELIMITER ,
END
!TYPE HOLD.FTM
July 10, 2015, 04:17 AM
borgasThanks Daniel,
Thats exacly what i needed.
works perfectly.
July 10, 2015, 09:59 AM
Kevin WOr create a comma delimited output file with format COM, COMMA, or COMT?