Someone else will probably respond with a more specific answer but:
On pick systems, the MD entry for a file is a pointer to the DICT of the file, and data sections are defined in the DICT. (the MD itself is defined in the SYSTEM file. It’s a 4 level hierarchy). There can be multiple data sections, or none at all, and none of the data sections have to have the same name as the dict section. When you issue a command like
SORT filename
that’s really shorthand for
SORT filename,filename
where the first filename is the name of the DICT, defined in the MD, and the second filename is the name of the data section, which would be defined in the DICT. When the dict section and the data section have the same name, you can use the shorthand, but if they are different then you have to use both names.
The error message you get is telling you that there is no data section named “menu.log” defined.
The next step is to look and see what is in the DICT section. There are several ways to do this. My favorite is to use the LIST-ITEM command
LIST-ITEM DICT menu.log
look for items that have “D” in attribute 1, which would be data section definitions. There could also be “Q” pointer items. If you find any F or Q entries try
sort menu.log,D-Item-name
or
list-item menu.log,D-Item-name
My guess though is that there aren’t any data sections. All the data is probably in the dict.
The definition for the DICT $(mds):$(MD)/menu.log/menu.log looks like something D3-specific that I’m not familiar with, but I’m guessing that it points to an OS file or directory.