Sharing Files

You can share your files with other users by:
  • Accessing directories
  • Creating aliases
  • Granting authority.

We have already discussed accessing other users' directories to share files. This section will discuss sharing files by creating aliases and granting authority. Whenever you store your files in an SFS file pool, you have the option to share any of your files or directories with other users, or to share none at all.

To determine who is enrolled in your file pool, you can use the QUERY ENROLL command. A sample format of the command follows:
Read syntax diagramSkip visual syntax diagram query enroll user for userid
Specify a user ID or nickname to determine if a specific user is enrolled. For example, to determine if Mary is connected to the VMSYSU file pool, you could specify:
query enroll user for mary
Your output might look like this:
Userid    Enrolled
MARY       YES
To see a list of all the users currently connected to your file pool, enter one of the following:
query enroll user for all

or

query enroll user

This section provides information on how to share files with users enrolled in your file pool. However, you can also use the QUERY ENROLL command to determine which users are enrolled in other file pools. For more information, see z/VM: CMS Commands and Utilities Reference.