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.

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 ddname. The file ID will be assigned to the data source later in the session when the actual create happens.

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:

USE
WAGES NEW
END
CREATE FILE WAGES

Information Builders