AddaByte    Programmers' Script Repository
Free and low cost software.
spacer
Find out about our beautiful fractal backgrounds at abm-enterprises


Newsletter Signup
Name
Email
 

  DB2 Procedures - Dynamic Creation of Generic Alias
 


Save up to 75% on software

Drive Clone

the best name in hosting


create procedure CALIAS                                          
-------------------------------------------                      
-- This procedure will allow for dynamic --                      
-- creation of a generic alias           --                      
-------------------------------------------                      
(IN NME CHAR(10),                                                
 IN LIB CHAR(10),                                                
 IN FIL CHAR(10),                                                
 IN MBR CHAR(10))                                                
  language sql                                                   
begin                                                               
  declare stmt varchar (100);                                       
  declare c2 cursor for st;                                         
  set stmt = 'CREATE ALIAS '|| trim(LIB) ||'/'|| trim(NME) ||       
  ' FOR '|| trim(LIB) ||'/'|| trim(FIL) ||' ('|| trim(MBR) ||')';   
  prepare st from stmt;                                             
  execute st;                                                       
  commit;                                                           
end                                                                 
  What does it do?
   Dynamically create alias for files on demand
 
  Features
  Added by Added Downloads Rating Popularity

  rpgivpgmr

11:59:48 AM Saturday, January 24th 2009

7

not rated

 
 
  About the file
  Size Download Rate It  

  1395 KB
  download this file
 
 
  Comments
no comments
 
  Add your comment
 Email  
 Subject  
 Comment  
 Verification code:

 
    All comments are screened by the admin prior to being posted
     
 
  Contacts
  Report Abuse