Personal tools
You are here: Home DB2 Problem Resolution Functions and Stored Procedures How to find out the routines from a specific package?
Navigation
Log in


Forgot your password?
 
Document Actions

How to find out the routines from a specific package?

syscat.routines, syscat.routinedep syscat.packages


Execute the select below to find out routines from a specific package.

select distinct a.routinename, b.bname from syscat.routines a, 
syscat.routinedep b, syscat.packages c where c.valid = 'N' and 
b.routinename = a.specificname and b.bname = c.pkgname and c.pkgname in 
('<PACKAGENAME>')




Exemplo:

select distinct a.routinename, b.bname as packagefrom syscat.routines a, syscat.routinedep b, syscat.packages c where c.valid = 'N' 
and b.routinename = a.specificname and b.bname = c.pkgname  and c.pkgname in ('P9472108')


Output:

ROUTINENAME PACKAGE
-------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------
FN_VALIDA_SEXO P9472108


Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls