Macro> command can't take a Let variable?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Dec 01, 2004 11:20 pm

Actually, annoyingly, there does appear to be a problem. It does seem to be the case that only the first variable is being passed successfully into the macro. Another bug to fix!

A workaround until then:

Let>RP_WAIT=1
Run>c:\blablabla\msched.exe c:\blablabla\somescript.scp /var1=something /var2=somethingelse /var3=another

Apologies for this, we'll fix it and release a patch asap.
MJT Net Support
[email protected]

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Dec 01, 2004 11:35 pm

Another workaround:

Macro>%SCRIPT_DIR%\MacroB.scp /vars=fred;sally;beatrice

MacroB:
Separate>vars,;fields

Now you have fields_1, fields_2 and fields_3 containing fred, sally and beatrice respectively.
MJT Net Support
[email protected]

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Dec 02, 2004 2:16 am

Macro>%SCRIPT_DIR%\MacroB.scp /vars=fred;sally;beatrice

MacroB:
Separate>vars,;fields

Now you have fields_1, fields_2 and fields_3 containing fred, sally and beatrice respectively.
Confused about this. If MacroB.scp has more than three variables, then which ones of them pick up fred;sally;beatirice? The first three in the script? Are these first three variables always named fields_1, etc.?

The first workaround you noted seems more correct.
-----------------------------------------------------------------

Hmmm....nevermind confusion above......I see you are using Separate. So now I would take original variable1 and make it equal to field_1, etc.

Neat....., but need to modify to add missing comma:
Separate>vars,;,fields
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts