COBEC0003I COPY name field is not Mainframe format

The source code will compile correctly on the PC, but not on a mainframe. This error is caused by using a path or extension with the COPY-file filename.
System Action:
COPY statement is processed as written.
Resolution:
If the application is to be portable to the mainframe, the name specified in the COPY statement should be written without any drive, path, or extension.
Module:
cicsprep (dfhxppin)
Destination:
Source Listing, .TRL file, STDOUT