Whenever you are using an external procedure in your program you have to declare the external procedure as entry.For example i am using the procedure XCLB008 in my main procedure and i first declare it like below
DCL XCLB008 ENTRY(CHAR(1),CHAR(*)) RETURNS(CHAR(32767) VAR);
dcl var1,var2 char(10)
then in the main procedure i am calling this as follows[/size]
var2=XCLB008('7',var1);and the external procedure should be compiled first and then the main procedure.