Identifying New Data Sources to FOCUS

How to:

The parameter NEW in the USE command identifies data sources that do not exist yet. When you identify a new data source, you can accept the default file specification conventions or specify different ones.

In CMS, when you issue a MODIFY command specifying a data source that does not exist, FOCUS creates the data source with a default file name, file type, and file mode. You can issue the USE command with the NEW parameter to give the data source a file ID other than the default.

For z/OS, you must allocate the data source, with the z/OS command ALLOCATE or the FOCUS command DYNAM, before you issue the USE command.


Top of page

x
Syntax: How to Identify New Data Sources to FOCUS
USE 
fileid NEW
END
CREATE file mastername

where:

fileid

Is any valid file specification for the operating system. The file ID will be assigned to the data source later in the session when the actual create happens.

On z/OS, the FOCUS data source will be created as a temporary file unless you previously allocated a permanent data source to the ddname in the USE command.

mastername

Is the name of the Master File associated with the data source.

If you omit the NEW parameter, a message is returned stating that the data source cannot be found, and the USE command is not executed.



Example: Identifying a New Data Source

To create the data source WAGES using the WAGES Master File, enter the following:

For CMS:

USE
WAGES FOCUS F NEW
END
CREATE FILE WAGES

 

For z/OS:

USE
WAGES NEW
END
CREATE FILE WAGES

Information Builders