Hi,
I have a SAS application that I am testing with the newly released SAS 9.2. I have a call to the metadat_newobj function to create a new Library object in the SAS metadata repository:
rc = metadata_newobj( "SASLibrary", URI, Name );
In 9.1.3, when the function executed successfully (rc = 0), the URI variable was populated with the URI of the newly created Library object.
In SAS 9.2, although the return value is 0 (Successful) and the Library object does get created (I checked manually using the management console), the URI variable stays blank so any subsequent operations to set attributes etc fail.
The documentation for both versions lists URI as an output parameter of this function.
Does anyone have any knowledge of this?
EDIT: The code I was using is as follows:
put libraryName=;
rc = metadata_newobj("SASLibrary", libraryUri, libraryName);
if rc ne 0 then do;
/* Error handler */
return;
end;
put libraryUri=;
and the output:
libraryName=HRLIB10
libraryUri=
I'm trying to work around this using PROC METADATA
instead, which seems to be working. :\
EDIT #2: I just realized that I have not mentioned that this is within SCL code.