Use the UMASK statement to define the file mode creation mask.
The file mode creation mask defines which permission bits are NOT to be set on when a file is created. When a file is created, the permission bits requested by the file creation are compared to the file mode creation mask, and any bits requested by the file creation that are not allowed by the file mode creation mask are turned off.
.-UMASK 027--------------. >>-+------------------------+---------------------------------->< '-UMASK----octal_umask---'
110110110 - 666
000010111 - 027
---------
110100000 - 640
When the UMASK is set to 027, the
actual permission bits set for a file when it is created is 640 (-rw-r-----).You cannot use FTP to create z/OS UNIX files that have execute permissions. If you require execute permissions, use the site and chmod commands or locsite chmod subcommand after the file is created. For more information about site and locsite, see z/OS Communications Server: IP User's Guide and Commands.