IEF210I UNIT FIELD SPECIFIES INCORRECT DEVICE NAME

Document ID : KB000124902
Last Modified Date : 17/01/2019
Show Technical Document Details
Question:
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.
Answer:
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 
 DO 
  SET &UNIT = 'SYSALLDA' 
  EXIT CODE(0) 
 END 
  
After modifying the ASRs, issue this command: F VAM,REFRESH 
Additional Information:
If any questions, please contact CA Technical Support.