Prev: Who can give me some advices SASHELP View and Dictionary
Next: Is it possible to empty the SAS log file without ending the
From: Arthur Tabachneck on 30 Jan 2010 18:30 Mark, Of course it is, but I don't see whatever point you are trying to make. Art -------- On Sat, 30 Jan 2010 16:20:53 -0500, Mark D H Miller <mdhmiller(a)GMAIL.COM> wrote: >Is not x * -1 the same as x = -(x) !!! > >... Mark Miller > >On 1/29/2010 6:09 AM, TheSharpOne wrote: >> it won't be pretty but you could try something likethe code below. >> Just replace WORK with your library name and SAMPLE with your table >> name: >> Proc SQL NoPrint; >> Select Trim(Name)!!' = '!!Trim(Name)!!'*-1;' INTO : varlist >> separated by ' ' >> From Dictionary.columns >> Where libname = 'WORK' AND memname = 'SAMPLE' >> ; >> Quit; >> >> Data x1; >> set x; >> &varlist; >> Run; >> >>
From: Mark D H Miller on 30 Jan 2010 22:12
My point was/is that the stated result is simply negation which may or may not require an explicit multiplication operation. .... mark On 1/30/2010 6:30 PM, Arthur Tabachneck wrote: > Mark, > > Of course it is, but I don't see whatever point you are trying to make. > > Art > -------- > On Sat, 30 Jan 2010 16:20:53 -0500, Mark D H Miller<mdhmiller(a)GMAIL.COM> > wrote: > > >> Is not x * -1 the same as x = -(x) !!! >> >> ... Mark Miller >> >> On 1/29/2010 6:09 AM, TheSharpOne wrote: >> >>> it won't be pretty but you could try something likethe code below. >>> Just replace WORK with your library name and SAMPLE with your table >>> name: >>> Proc SQL NoPrint; >>> Select Trim(Name)!!' = '!!Trim(Name)!!'*-1;' INTO : varlist >>> separated by ' ' >>> From Dictionary.columns >>> Where libname = 'WORK' AND memname = 'SAMPLE' >>> ; >>> Quit; >>> >>> Data x1; >>> set x; >>> &varlist; >>> Run; >>> >>> >>> > |