Andrew Johnson wrote on 30/04/10 00:24:
> On Thursday 29 April 2010 17:07:35 [email protected] wrote:
>
>> Is there a way to dump the value of records into a text file?
>> i.e. dump the value of the PREC,EGU,DTYP,DESC fields of all records?
>>
> >From the ioc shell:
> dbl * "PREC EGU DTYP DESC" > file.txt
>
> You'll have to adjust that slightly (double-quote the asterisk and add a comma
> between the arguments) if you're on vxWorks.
>
Just be aware of a minor pitfall:
if one of the fields does not exist for one of your records, it will be
just missing in the output.
E.g.
dbl * "RTYP PREC EGU DTYP DESC"
test:1,"bi","Soft Channel","desc of test:1"
test:2,"calc","1","unit","","desc of test:2"
test:3,"longout","unit","Soft Channel","desc of test:3"
So if you want to parse the output, it's saver to generate extra files
for each field that is not common to all records. (Note: 'calc' records
have a DTYP field, it just happens to be always NIL)
Andreas
--
She often gave herself very good advice (though she very seldom followed
it).
-- Lewis Carroll
- Replies:
- Re: Dump record fields into a text file Andrew Johnson
- References:
- Dump record fields into a text file emmanuel_mayssat
- Re: Dump record fields into a text file Andrew Johnson
- Navigate by Date:
- Prev:
Re: Dump record fields into a text file Andrew Johnson
- Next:
Re: Dump record fields into a text file Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Dump record fields into a text file Andrew Johnson
- Next:
Re: Dump record fields into a text file Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|