Exercise 2 - Property Expressions: Arithmetic
- In the
C:\PropertyExpressions
folder create the following files:
PropertyExpressionsAddition.txt
PropertyExpressionsSubtraction.txt
PropertyExpressionsMultiplication.txt
PropertyExpressionsDivision.txt
PropertyExpressionsArithmetic.txt
- Verify that the following Global Properties exist.
[[$SCHEDULE DATE mm]]
[[$TIME hh]]
[[$SCHEDULE DATE dd]]
[[$TIME mm]]
- Add five Jobs to the PROPERTY EXPRESSIONS Schedule to do the following:
- Add
- Subtract
- Multiply
- Divide
- Add Then Divide
- Use the following parameters for the Job named ADD.
Job Type:
Windows
Job Sub-Type:
Command: File Move
Primary Machine:
SMATraining
User ID:
Use Service Account
Source:
C:\PropertyExpressions\PropertyExpressionsAddition.txt
Destination:
C:\PropertyExpressions\PropertyExpressionsAddition_[[=ToInt([[$SCHEDULE DATE mm]]) + ToInt([[$TIME hh]])]].txt
- Repeat for each of the remaining four jobs using the following types of equations with at least one Property in the expression:
Subtracting Values (PropertyExpressionsSubtraction.txt)
Multiplying Values (PropertyExpressionsMultiplication.txt)
Dividing Values (PropertyExpressionsDivision.txt)
Adding Values and then Dividing the total by another value (PropertyExpressionsArithmetic.txt)
Note
Decide what values to use during this exercise
- Build the Schedule and make sure all Jobs run successfully and the proper files were created.