We help IT Professionals succeed at work.
Get Started

interactive SQL can not find stored procedure

iskibinska
iskibinska asked
on
659 Views
Last Modified: 2012-08-14
Hi I created a function :

SET CURRENT SCHEMA DEFAULT;            
CREATE  FUNCTION CENA                  
                 (PRODPRC DECIMAL(11,2),
                  DSCPRC DECIMAL(5,2),  
                  PRDQTY DECIMAL(5,2),  
                  CORP CHAR(2),        
                  ACCT1 CHAR(7),        
                  ACCT2 CHAR(4),        
                  LIB CHAR(10))        
  RETURNS DECIMAL (11,2)                
                                       
  LANGUAGE SQL                          
  SPECIFIC CENA                        
  READS SQL DATA                        
                                       
  BEGIN                                
 ...
 END;
ran RUNSQLSTM on it and  CENA *SRVPGM was created in QGPL . However when
I am trying to run interactive SQL:
SELECT  customer,cena(price,qty, disc, customer),
'E2DISPDTFL')                                                  
   from file1                                        

I am getting the message:
CENA in *LIBL type *N not found.

I have another function which is called without any problems        


Comment
Watch Question
Expert for hire: IBM i, AIX, Linux, Windows, DB2, Performance, Security. EDI
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE