Search found 28 matches

by Nightwatchrenband
14 Feb 2013 6:29
Forum: Job Definition
Topic: Using ctmvar with %%$CALCULATE
Replies: 6
Views: 12696

Actually I'm not trying to execute it

Think about what I am trying to do. I am not actually trying to EXECUTE the $CALCULATE. I am only trying to ASSIGN it to a global variable where it will be evaluated later when a JOB tries to use the global variable. The "@" signs indicate that the %% values are to be evaluated at execution time, NO...
by Nightwatchrenband
14 Feb 2013 5:14
Forum: Job Definition
Topic: Using ctmvar with %%$CALCULATE
Replies: 6
Views: 12696

Thanks, but should work in ctmvar

Thanks for the info on $CALCULATE. My command works just fine when in a Table or job, and as I understand it, the table and job just invoke ctmvar behind the scenes. It seems to me that it should work as a command for global as well.
by Nightwatchrenband
14 Feb 2013 4:44
Forum: Job Definition
Topic: Using ctmvar with %%$CALCULATE
Replies: 6
Views: 12696

Using ctmvar with %%$CALCULATE

I set a variable for ODATE plus one day in tables and jobs using this in the SET tab: %%$CALCDATE %%ODATE +1 and it works just fine. Now, I want to use it as a global var. So, the following "should" work, but doesn't. Gets message: CALCDATE: Undefined variable. Go figure? ctmvar -action set -var "%%...
by Nightwatchrenband
14 Feb 2013 4:33
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

Thanks

FYOT! Thanks for the tip on the latency. I'll check Danny! That indeed works and I set up a symbol which resolves to a blank for the first %%@. Seems to me that if BMC had written their software a little better, it would not be a problem, but I doubt they will ever get around to fixing it. "Working ...
by Nightwatchrenband
14 Feb 2013 1:28
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

Well, yes

Yes, that is true. But the whole point of assigning Global variables server-wide means that I can define variables at the global level which may then be used by every job any yet have unique values because of the %%@. In this case %%\eMailMsgXX is going to be used in a DOMAIL to show the jobname. Bu...
by Nightwatchrenband
13 Feb 2013 11:38
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

Here is what I get when I try it

Below is the log from my unix system. Note that eMailMsg03 is defined to be what I am trying for because I start the Varexpr with another %%@ var. But eMailMsgXX is not. By the way, Jobname is a standard Control-M variable set by every running job. I do not want that var set until an actual job is r...
by Nightwatchrenband
13 Feb 2013 8:08
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

Same results.

epspubmdv-bmdadm [31] ctmvar -action set -var "%%\eMailMsgXX" -varexpr "This is jobname:.%%@JOBNAME.." Gets %%eMailMsgXX This is jobname:.. I just got a reply back from BMC, they say that when using %%@ vars they MUST be at the beginning of the varexpr string. I do not "like" the answer, but that ap...
by Nightwatchrenband
13 Feb 2013 7:03
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

No go on the "."

Tried your suggestion. Here is the result %%eMailMsgXX This is jobname: . It just added a "." to the end What I should get is %%eMailMsgXX This is jobname: %%@Jobname Many folks seem to think of the "." as a concatenation char. I think this leads to problems. It will work better if they think of is ...
by Nightwatchrenband
12 Feb 2013 8:32
Forum: Job Definition
Topic: ctmvar global var with both %%@var AND character string
Replies: 14
Views: 28478

ctmvar global var with both %%@var AND character string

When the %%@var is BEFORE the char string it WORKS When the Char string is before the %%@var it FAILS Anyone know how to get around this? Example: ctmvar -action set -var "%%\eMailMsg07" -varexpr "This is jobname: %%@JOBNAME." ctmvar -action set -var "%%\eMailMsg08" -varexpr "%%@JOBNAME. This is job...
by Nightwatchrenband
01 Aug 2012 8:02
Forum: Control-M Agents
Topic: Agents going Unavailable dropping
Replies: 2
Views: 13223

Agents going Unavailable dropping

We keep having our CTM Agents going Unavailable, and then coming available again with no clear reason. Server is on AIX, agents on AIX, Sun and Win. Have been working with their support, but it is very slow, especially since the drops are seemingly random. It "may" be related to use of port 7006, we...
by Nightwatchrenband
25 Jul 2012 2:29
Forum: Control-M Agents
Topic: Control-M/Agent
Replies: 5
Views: 18557

Agent

Your Control-M scheduler is on a SERVER. It schedules your jobs for that server. If you have a distributed system where you need to run jobs on other servers (clients) then you need an Agent on that server/client. It talks back and forth to the CTM-Server and keeps tracks of jobs run on that client....
by Nightwatchrenband
25 Jul 2012 2:24
Forum: Control-M Control Module
Topic: AFT wildcard * and ? get error message
Replies: 2
Views: 13445

Figured it out with help. IF you are using a directory, or Wildcards in the "source" file, then the "destination" MUST be a directory not a file. They do not seem to consider that wildcards just might resolve to a SINGLE file. Their message confuses rather than illuminates.
by Nightwatchrenband
24 Jul 2012 7:42
Forum: Control-M Control Module
Topic: AFT wildcard * and ? get error message
Replies: 2
Views: 13445

AFT wildcard * and ? get error message

New to CTM and my first post, so please be gentle. Trying to do AFT of /a/b/c/XHHMMSS.txt Where HHMMSS will change. I try to use * and/or ? wild cards eg: /a/b/c/X*.txt /a/b/c/X??????.txt but I get a message "Transfer#1 This is an illegal request. A directory cannot be transferred into a file" I can...