Published on :

AHGtag Macro

This code is also available in: Deutsch Español Français
This SAS© macro is designed to dynamically create a tag in HTML or XML format. It takes a tag name ('tag') and a character string ('str') as input, which forms the content of the tag. A 'pairs' parameter is defined but is not used in the macro body. It can be useful for generating dynamic reports or textual data structures.
Data Analysis

Type : N/A


The AHGtag macro does not directly manipulate SAS data. Its role is to generate formatted text from its input parameters.

1 Code Block
MACRO
Explanation :
This block defines the 'AHGtag' macro. It accepts three parameters: 'tag' (the tag name), 'str' (the tag content), and 'pairs' (an optional, unimplemented parameter). The objective is to encapsulate the 'str' string between an opening tag and a closing tag dynamically constructed with the 'tag' parameter.
Copied!
1%macro AHGtag(tag,str,pairs=);
2<&tag>&str
3%mend;
4 
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.