Using system variables in email subject

Post Reply
User avatar
reggiefl
Nouveau
Nouveau
Posts: 3
Joined: 05 Oct 2012 12:00

Using system variables in email subject

Post by reggiefl » 05 Jun 2013 4:16

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.

jobschubse

Post by jobschubse » 10 Jun 2013 1:30

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

User avatar
reggiefl
Nouveau
Nouveau
Posts: 3
Joined: 05 Oct 2012 12:00

Post by reggiefl » 14 Jun 2013 3:27

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.

User avatar
Nightwatchrenband
Nouveau
Nouveau
Posts: 28
Joined: 24 Jul 2012 12:00
Location: Long Beach, CA

Works fine in V7+

Post by Nightwatchrenband » 14 Jun 2013 6:14

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.

User avatar
moldyscull
Nouveau
Nouveau
Posts: 2
Joined: 18 Nov 2013 12:00

Post by moldyscull » 18 Nov 2013 1:42

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!

User avatar
DocGoo
Nouveau
Nouveau
Posts: 73
Joined: 08 Sep 2010 12:00

What Version of 6.4?

Post by DocGoo » 30 Jun 2014 9:18

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

User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Post by jstarkw » 08 Jul 2014 7:27

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

Post Reply