You should be able to change your settings in Enterprise Guide so that it does NOT set the validvarname option to ANY.
But you can also just use the PREFIX= option on PROC TRANSPOSE to always add the underscore prefix to the names. Then the generated names should be the same no matter what setting you have for the validvarname option.
... View more