Your SAS programs, embedded in web apps and elsewhere

Variable use in _webout without using %STPBEGIN and %STPEND(*urgent)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Variable use in _webout without using %STPBEGIN and %STPEND(*urgent)

Hi,

.I have to create one store process where I have to display the data in HTML page. I created but it was giving me an error-

* _webout in use.

I removed %STPBEGIN and %STPEND and executed as well.It worked Smiley Happy. I checked the output but I couldn't see the macro value Smiley Sad.

EX:-

global check;

%let Check=10;

data _null_;

   file _webout;

   put '<HTML>';

   put '<HEAD><TITLE>Hello World!</TITLE></HEAD>';

   put '<BODY>';

   put '<H1>Hello World!&check</H1>';

   put '</BODY>';

   put '</HTML>';

run;

OUTPUT:-

HELLO World!&check

but the output should have been Hello World!10

***pls help :smileyplain:


Accepted Solutions
Solution
‎03-18-2015 03:39 AM
Super User
Posts: 7,824

Re: Variable use in _webout without using %STPBEGIN and %STPEND(*urgent)

If you want the macro processor to resolve a macro variable, you must use double quotes. Single quotes keep the macro processor from working on the enclosed string.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎03-18-2015 03:39 AM
Super User
Posts: 7,824

Re: Variable use in _webout without using %STPBEGIN and %STPEND(*urgent)

If you want the macro processor to resolve a macro variable, you must use double quotes. Single quotes keep the macro processor from working on the enclosed string.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 10

Re: Variable use in _webout without using %STPBEGIN and %STPEND(*urgent)

Posted in reply to KurtBremser

Thanks Man Smiley Happy  that was really helpful!!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 623 views
  • 0 likes
  • 2 in conversation