Identifying a New Data Source

How to:

You can identify a data source that does not exist yet. When you identify a new data source, you can accept the default file specification conventions or specify different ones.

Note: For z/OS, you must allocate the file before issuing the USE command. You can do this using the z/OS command ALLOCATE or the WebFOCUS command DYNAM. You must also issue the z/OS command CREATE to physically create the file. This is not a requirement for platforms that dynamically allocate files.

Syntax: How to Identify a New Data Source

USE 
fileid NEW
END

where:

fileid

Is any valid file specification for the operating system. The file ID will be assigned to the data source when it is created.

NEW

Specifies that the data source does not yet exist. If you omit the NEW parameter, a message is returned stating that the data source cannot be found. The USE command is not executed.

Example: Identifying a New Data Source

The following command creates the data source WAGES using the WAGES Master File.

Windows:

USE
C:\DATA\WAGES.FOC NEW
END
CREATE FILE WAGES

z/OS:

USE
WAGES NEW
END
CREATE FILE WAGES

UNIX:

USE
wages.foc NEW
END
CREATE FILE WAGES