Knowledge Base

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).


Why are files being renamed automatically when uploading to an IBM MVS system?

Datasets on an IBM MVS system are different from files in a hierarchical file system like on Windows or Unix.

MVS is expecting a file upload to be named according to a specific convention that looks something like this:

PART1.PART2.PART3.PART4

Depending on how the system is configured, if you upload a file with the command SENDFILE "PART1.PART2.PART3.PART4" you may find that the file gets renamed to USERID.PART2.PART3.PART4 on the remote system (where USERID is your user ID).

If you encounter this problem and want to avoid this renaming, try using the /as option with SENDFILE to add single quotes around the file name. Many systems interpret the single quotes to mean "don't change the dataset prefix."

The command would look like this:

SENDFILE "PART1.PART2.PART3.PART4" /as "'PART1.PART2.PART3.PART4'"

Notice the single quotes inside double quotes.

Article last updated: 2021-11-16

Tags: MVS