ADSM-L

Variable Substitution in Macros

1999-12-15 11:24:05
Subject: Variable Substitution in Macros
From: Steven Chaba <Steven_Chaba AT RGE DOT COM>
Date: Wed, 15 Dec 1999 11:24:05 -0500
Server: ADSM 3.1.1.5 running over AIX 4.2.1
No client involved

I am trying to write (what I thought was) a simple macro, to wit:

query actlog -
begindate=%1/%2/%3 begintime=00:00:00 -
enddate=%1/%2/%3 endtime=23:59:59 -
> /adsm/activity_logs/%3%2%1

for the obvious reason of dumping a calendar day's activity log to a flat file
for future use in whatever way amuses me.

The substitution of the variables into the two date fields works fine, but in
the last substitution, where it's trying to create an output file name of, say
19991215, it's not substituting, so it creates a file called %3%2%1.

I tried breaking up the variables, i.e. %3.%2.%1, and also adding a leading
non-variable to the name, i.e. log%3.%2.%1, neither of which worked any better.

What part of this is it that I don't understand?

Steven Chaba, ADSM Admin
Rochester Gas & Electric Corp
<chaba AT rge DOT com>
<Prev in Thread] Current Thread [Next in Thread>
  • Variable Substitution in Macros, Steven Chaba <=