Protecting a Data Source

How to:

You can protect a data source from changes by including the READ parameter when issuing a USE command. A protected data source can be read by various tools and commands, but cannot be changed.

Syntax: How to Protect a Data Source

USE 
fileid READ
END

where:

fileid

Is any valid file specification for the operating system.

READ

Restricts the data source to read-only access.

Example: Protecting a Data Source

The following command protects the EMPLOYEE data source from modification.

Windows:

USE
EMPLOYEE.FOC READ
END

z/OS:

USE
EMPLOYEE READ
END

UNIX:

USE
/usr/mydata/employee.foc READ
END

WebFOCUS

Feedback