Focal Point
[CLOSED] Scheduler, Notification, Subject Parameter

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6837051196

March 04, 2019, 09:42 AM
jenni
[CLOSED] Scheduler, Notification, Subject Parameter
Hi,

when I try to use a global Parameter (which contains the Environment I am using) in my Subject, I just get a Mail with the Parameter, but not its Value.

So:
How can I easily differ where my notification Mails are from (Environment)

Thanks,

Jenny

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Windows, All Outputs
March 05, 2019, 07:13 PM
FP Mod Chuck
Jenny

I successfully tested this in my 8.1.05 environment. I set the global variable &&ENVIRONMENT ie. -SET &&ENVIRONMENT='Test 8105'; in my server profile edasprof.prf and referenced it in the subject in my notification of the schedule and it worked like a charm. If this continues to be an issue please open a case with techsupport so they can debug it.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 05, 2019, 08:24 PM
Doug
Good one Chuck. I just used this concept.

I am a bit confused. Aren't the RC Jobs set up in a predetermined environment? If so, then the environment in which they are created is known, thus, it can be hard-coded in the subject line.

Or, is this just a Proof of Concept for the use of Global variables in RC?
March 06, 2019, 04:15 AM
jenni
thanks @FP Mod Chuck für trying.

I'm testing in 8204, and my edasprof.prf contains the global variable as well

Can you retest with 8204??

@Doug what do you mean with "envirnment is known", I Need it in a written form somewhere in my Scheduler notification mail, sothat I know where the mail is from.


WebFOCUS 8.1.05
Windows, All Outputs
March 06, 2019, 04:25 AM
Addy
quote:
Originally posted by jenni:
thanks @FP Mod Chuck für trying.

I'm testing in 8204, and my edasprof.prf contains the global variable as well

Can you retest with 8204??


I am working on 8204 and I was able to replicate what Chuck did. It works prefectly fine in 8204


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
March 06, 2019, 09:01 AM
Joanna Swiggett
Jenni - Just in case this may be your issue. You can't have -EXIT in the fex that is being scheduled as this will cause the variable in the subject to not resolve.


WebFOCUS 8.2.01M
March 06, 2019, 10:31 AM
FP Mod Chuck
I think Jenni is creating schedules in one environment and using change management to promote them so the variable value will change as it moves to another environment without needing to change a hard coded value.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 06, 2019, 10:50 AM
Doug
Thanks Chuck, I wasn't thinking about using CM to migrate the RC Jobs. So, with that in mind, It's perfectly clear.