f



Re: &&&&&& #3

toby dunn <tobydunn@hotmail.com> replied:
> Alan,
>
> I disagree with that statement.  I think the best solution would be to
build
> the dang thing the way he want with less macros.  By sending your code
out
> then back in is in MO to much hassel for too little.
>
> the whole thingy could be done like this:
>
> data one ;
> flower = 'Daisy' ;
> color  = 'Yellow' ;
> run ;
>
> data two ;
> set one ;
> call symput ( compress('text'||_n_),compbl(flower||'='||color) ) ;
> call symput ( 'index' , compress(_n_) ) ;
> run ;
>
> %put &&text&index ;

But I'm going to agree with Alan when he said:
>> Others will argue for SCL or something else. Regardless, this
application
>> probably requires a complete rethink if you are using 6 ampersands.

Any application so complex that the author can't read it - much
less adapt it in six months - is probably due a factory re-fit.

Now that we have associative arrays, we have other ways of storing
key-value 'chains'.

David
--
David Cassell, CSC
Cassell.David@epa.gov
Senior computing specialist
mathematical statistician
0
cassell.david (1747)
6/9/2005 6:32:39 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
1647 Views

Similar Articles

[PageSpeed] 44

Reply: