Have you tried using an alternative like SUBSTR ...

$PCdept = substr(@WKSTA,1,2)