We are having another issue with a dataset getting an invalid unit. In this case, the output isn't being dummied out. I have run tests pointing to this UNIT (UNIT=WORK) and am able to create them. It is a temp dataset that is being passed in the job. Not sure if there is something I need to change in my ASR rules.
This error can occur when the specified VOLSER does not match the specified UNIT.
Or, it can occur when a &&TEMPxx DSN is allocated in one step and passed to the next.
The fix for these problems is within PTF RO99901 by setting Vkgparm: PLSGSNOL (Y)
(N) default - The OLD environment is normally restricted to cataloged data set names.
(Y) The OLD environment will also accept allocations that do not specify a data set name.
After adding this Vkgparm, issue the command: F VAM,PARMREF
An ASR statement also has to be added in the 'OLD' environment, like this:
IF &VAMENVIR EQ 'OLD' THEN
SET &UNIT = 'SYSALLDA'
After modifying the ASRs, issue this command: F VAM,REFRESH
If any questions, please contact CA Technical Support.