Prev: Unable to sort dataset with 6.7 Million records. ERROR: Utility file write failed. Probable disk full condition.
Next: Date Conversion
From: Reinhard on 22 Mar 2010 11:29 Hi, I want to assign a variable a text string, which contains a %. Then use call execute to call the macro. When doing it like this : runmac = compress("%tst(" || svar || ")"); call execute(runmac); the macro is invoked before the call execute statement. The only way how to get around this, that I know of, is : runmac = compress("%" || "tst(" || svar || ")"); to split the % and the macro name. How do I mask this text string. Thx.
From: Tom Abernathy on 22 Mar 2010 13:11
The simplest answer is to use single quote character rather than double quote character. call execute('%tst(' || svar || ')' ); For simple macros this will work well. On Mar 22, 11:29 am, Reinhard <reinharddor...(a)gmail.com> wrote: > Hi, > > I want to assign a variable a text string, which contains a %. Then > use call execute to call the macro. > When doing it like this : > > runmac = compress("%tst(" || svar || ")"); > call execute(runmac); > > the macro is invoked before the call execute statement. > > The only way how to get around this, that I know of, is : > > runmac = compress("%" || "tst(" || svar || ")"); > > to split the % and the macro name. > > How do I mask this text string. > > Thx. |