! record format is being mistaken for the first recordformat in perms.  Probably because the '*' maps to 0.

routine fred(record(*)name b)
end

endoffile