Page 1 of 1

Using system variables in email subject

Posted: 05 Jun 2013 4:16
by reggiefl
I already use system variables in the email body but how can we use system variable like %%MONTH, %%YEAR on the subject line of an email which is sent using DO MAIL? if not, how can we use variable on the subject line? thanks.

Posted: 10 Jun 2013 1:30
by jobschubse
the same way.
put the variable %%MONTH in the subject field at the DO MAIL Statement.
it works also in version 6.4

regards
manfred

Posted: 14 Jun 2013 3:27
by reggiefl
jobschubse wrote:the same way.
put the variable %%MONTH in the subject field at the DO MAIL Statement.
it works also in version 6.4

regards
manfred
Sorry it's not working for me, this is why I asked the question. I use version 6.04.01. There must be something wrong with it.

Works fine in V7+

Posted: 14 Jun 2013 6:14
by Nightwatchrenband
I am on v7 and it works just fine. Indeed I have system vars set for standard DOMAIL messages used by almost all jobs. Saves a lot of time and gives users a consistent message format . There is one "gotcha" an that is the 99 char limit in Subject lines. Easy to exceed when using Symbolics. You might try symbolics in the message lines where they also work.

Posted: 18 Nov 2013 1:42
by moldyscull
jobschubse wrote:the same way.
put the variable %%MONTH in the subject field at the DO MAIL Statement.
it works also in version 6.4

regards
manfred

This is another information and ideas for me:) Thanks!

What Version of 6.4?

Posted: 30 Jun 2014 9:18
by DocGoo
Hello,

We are using CM 6.4.01.500 version and variables in the Subject line do not work.

What version of 6.4 are you using to get variables in the Subject????

-Goo

Posted: 08 Jul 2014 7:27
by jstarkw
Can some post a working example of how autoedit variables work on a subject line of a mail. Per the 6.4 paramters guide autoedit variables can be used in:

Parameters that accept AutoEdit variables
AutoEdit variables can be specified as values for any of the following job processing parameters. These variables are resolved to actual values at time of job submission.
Command
Do Mail (the To and Message fields)
Do Shout (the Destination and Message fields)
Do Sysout (Prm field)
File Name
In Condition (system variables can be specified as the entire value)
Mem Lib
Mem Name
Out Condition (system variables can be specified as the entire value)
Over Lib
Path
Quantitative Resource (system variables can be specified as the entire value)
Shout (the Destination and Message fields)
Step Range
Sysout (Prm parameter)


From 8.0 parameter guide. page 167

Subject->Variable Support: No. A variable or expressioin cannot be specified as all or part of the value for this parameter.

regards