DESCRIBE PACKAGE DS2-program-name DESCRIBE THREAD DS2-program-name
GRANT EXECUTE on package basecat.basetest.pkgGrade to "user-name" DENY EXECUTE on package basecat.basetest.pkgGrade to "user-name" REVOKE EXECUTE on package basecat.basetest.pkgGrade from "user-name"
Object
Permission
|
DS2 Data Program
|
DS2 Thread
|
DS2 Package
|
Method in a DS2 Package
|
|
---|---|---|---|---|---|
CREATE
|
Not applicable
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
Schema owner
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
Schema owner
|
Created along with a
DS2 package.
|
|
DROP
|
Not applicable
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
Schema owner
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
Schema owner
|
Dropped along with a
DS2 package.
|
|
EXECUTE
|
SQL/Call statement
|
Not applicable
|
Not applicable
|
Not applicable
|
Connect DS2 DSN with FEDSQL dialect.
EXECUTE on the DS2 method.
|
DS2 program
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
EXECUTE on the DS2 thread.
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
EXECUTE on the DS2 thread.
|
Connect DS2 DSN / EXECUTE on server (when connection string is used).
EXECUTE on the package
that contains the method.
|
GRANT EXECUTE on package package-name to username
DENY EXEUCTE on package package-name to username
“packagename.functionname”
so
that it is treated as one object name. Here are some examples:
GRANT/DENY EXECUTE on FUNCTION basecat.basetest."pkgGrade.compute" to username REVOKE EXECUTE on FUNCTION basecat.basetest."pkgGrade.compute" from username
GRANT EXECUTE on SERVICE BASE to PUBLIC; DENY EXECUTE on CATALOG basecat to PUBLIC; GRANT EXECUTE on SCHEMA basecat.basetest to public;
{OPTIONS (LANG DS2)}
]. Here is the
syntax:
CREATE DSN dsn-name under BASE noprompt 'catalog="catalog-name"; schema="schema-name"' {OPTIONS ( LANG DS2 )};
CREATE DSN test UNDER data-service-name NOPROMPT 'CATALOG=LD_CAT1_BASE;SCHEMA=(NAME=LD_SCHEMA1_BASE)' {OPTIONS (LANG DS2, SECURITY YES, CREDENTIALS_SEARCH_ORDER(SHARED))}
CREATE DSN federated-DS2 UNDER BASE {OPTIONS ( LANG DS2 )} ADD (DSN1, DSN2, DSN3)
data outtable(overwrite=yes); dcl double x; method run(); x=1; output; end;