Page 1 of 1

global replace using a variable driving me nuts

Posted: Fri Feb 20, 2009 7:13 pm
by gimla
###SYMBOL: aaa X
UPDATE etf e SET e.etf_1 = 'some data (always changes)' where e.etf_symbol = --- ;
UPDATE etf e SET e.etf_2 = 'some data (always changes)' where e.etf_symbol = --- ;
UPDATE etf e SET e.etf_3 = 'some data (always changes)' where e.etf_symbol = --- ;
UPDATE etf e SET e.etf_4 = 'some data (always changes)' where e.etf_symbol = --- ;


the above tex can vary in order and content


I am trying to replace --- with aaa

If you ask me to use the capture aaa into a global variable , can you point me to somewhere where it is explained how step by step
as I could not find any tutorial on how to do this, I did read the help and I am a programmer (although feel a bit dumb asking this stupid question)

Re: global replace using a variable driving me nuts

Posted: Mon Feb 23, 2009 12:04 pm
by DataMystic Support
See report extraction/copy first field down.fll,

|
|--Restrict to each line in turn
| |
| |--Restrict columns:Column 1 .. column 15
| | |
| | |--Restrict to lines NOT matching [ {15}]
| | | | [ ] Include line numbers
| | | | [ ] Include filename
| | | | [ ] Match case
| | | | [ ] Count matches
| | | | Pattern type: 0
| | | | Context before: 0
| | | | Context after: 0
| | | |
| | | +--Capture to variable @mydata
| | | Reset: 1
| | |
| | +--Remove all
| |
| +--Add left margin [@mydata]
|