Creating a file

You can create a file to add to your loaded repository workspace by using commands in the Interactive System Productivity Facility (ISPF) client.

About this task

You can use the primary command S NEWFILE to create a new member or a new z/OS® UNIX file. Ensure that you follow the rules for naming files. You can enter this primary command from either the Source Control panel or the z/OS UNIX Directory List panel.

You can also create a new file in a data set or z/OS UNIX directory by copying the file by using the ISPF 3.3 copy command.

In the Source Control panel, the SCM column contains a question mark (?) next to the file, which means that the file is not under source control. To get the file under source control, you must share it to the loaded repository workspace.

In the z/OS UNIX Directory List panel, a new file is in a directory that is already shared. The SCM column contains an asterisk (*) next to the file, which means that the file is in a pending change that needs to be checked in. The file does not have to be shared.

Procedure

  1. In the Source Control panel or the z/OS UNIX Directory List panel, enter the S NEWFILE command on the panel, where NEWFILE is the member name or file name to be created.
    Note: You do not need to enter a file extension. File extensions are disregarded on z/OS. However, if zFiles are loaded to a computer that is running an operating system that uses extensions, an extension can help ensure that an appropriate editor opens the zFile.
  2. Enter the data to add to the new file.
  3. Press F3 to save the file and exit from the editor.

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki