The following CA-Allocate messages have been generated while renaming a HFS dataset -
VAM0002I RENAME OF SOF12D.OMVS.HFS
VAM0002I TO HCM02D.OMVS.HFS
VAM0002I ON VOLUME OMVS02 NOT ALLOWED, REASON CODE: 31
IEC331I 042-002(080E083C),HCM02DRD,STEP1 ,RNAM,IGG0CLH2
IEC331I VOL,OMVS02,NAME,SOF12D.OMVS.HFS
Release : 12.5
Component : Allocate DASD Space and Placement
Indeed it is the ASR that is issuing the message and rejecting the rename:
IF (&NEWNAME = &BTCMISC)
THEN SET &C9 = 'EXC'
ELSE SET &C9 = 'INC'
IF &NEWNAME(1) = &DEVCDT AND &C9 = 'INC'
THEN DO
WRITE 'VAM0002I RENAME OF &DSN'
WRITE 'VAM0002I TO &NEWNAME'
WRITE 'VAM0002I ON VOLUME &ANYVOL NOT ALLOWED, REASON CODE: 31'
EXIT CODE(8)
END
If denying the RENAME is not desired, then the ASR routines should be modified.