Can I use a context variable or a global variable ...
Can I use a context variable or a global variable in a routine?
A globalMap variable or a context variable is not accessible from a routine, because the job class and the routine are two independent units. As a workaround, you can pass the value of a global variable or a context variable as a parameter to your routine. The following example code converts a string to all upper case: