I am trying to create some JCL that will create a set of datasets with displays. Depending on the LPAR they are going to be different displays. I want to make it so particular job steps in a JCL will only run on that LPAR. I have tried using an IF THEN ENDIF statements but it seems that it requires a numerical value.
Saying my LPAR name was BATMAN I tried the following
IF (&SYSNAME EQ BATMAN) THEN
ENDIF
But it fails with the error BATMAN is not a valid value.