Previous Page | Next Page

DATA Step Functions for Reading and Writing Metadata

METADATA_DELOBJ Function

Deletes the first object that matches the specified URI.


Syntax

rc = METADATA_DELOBJ(uri);


Arguments

Argument Direction Description
uri
in Uniform Resource Identifier


Return Values

Value Description
0 Successful completion
-1 Unable to connect to the metadata server
-2 The deletion was unsuccessful; see the SAS log for details
-3 No objects match the URI


Example

options metaserver="a123.us.company.com"
	metaport=8561
	metauser="myid"
	metapass="mypassword"
	metarepository="myrepos";

data _null_;

    rc=metadata_delobj("omsobj:Property?@Name='My Object'");
    put rc=;

run;


Related Functions

Previous Page | Next Page | Top of Page