Exercise 1 - Property Expressions - ToUpper and ToLower
- Create the folder
C:\PropertyExpressions
on the OpCon Training Machine. - Create a blank text file named
PropertyExpressions.txt
- Create a Global Property for
[[$SCHEDULE DATE mmm]]
- Name:
$SCHEDULE DATE mmm
- Value:
mmm
- Create a Schedule called Property Expressions.
- Create a Job named File Copy with the following parameters:
- Job Type:
Windows
- Job Sub-Type:
Command: File Copy
- Primary Machine:
SMATraining
- User ID:
Use Service Account
- Source:
C:\PropertyExpressions\PropertyExpressions.txt
- Destination:
C:\PropertyExpressions\PropertyExpressions_[[=ToUpper([[$SCHEDULE DATE mmm]])]].txt
- Frequency:
MON-FRI-N
- Copy the Job changing the following two things:
- Source:
C:\PropertyExpressions\PropertyExpressions_[[=ToUpper([[$SCHEDULE DATE mmm]])]].txt
- Destination:
C:\PropertyExpressions\PropertyExpressions2_[[=ToLower([[$SCHEDULE DATE mmm]])]].txt
- Make the copied Job dependent on the first Job.
- Build the Schedule for today.
- Verify that the Job Finished OK (release the Schedule if necessary).
- Verify that the two files were created with the proper names.