PDA

View Full Version : Creating Macro from Another Macro


Albin
12-06-2011, 04:31 PM
Is there a way I can create a MACRO from another MACRO?

IE

Create a MACRO called HOST
HOST = REDHAT

Now I want to create a macro called REDHAT_COMPLETE based on the %HOST% Macro.

Thanks

kinook
12-06-2011, 04:58 PM
See the attached sample.

Albin
12-07-2011, 10:15 AM
Thanks for the response.

Say I don't know what the host is, it's only created during runtime, basically I want to output a the MACRO that contains another Macro.

Example

loop (redhat, suse, solaris)
HOST = <loop value>
%HOST%_COMPLETE = TRUE
if % %HOST%_COMPLETE %
continue;
check HOST status