Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

call store procedure from PB 12.5

$
0
0

Hi!

 

I have this:

 

alter procedure DBA.PermisoDocumentoInventario(@usuario varchar(20),@Ingresar integer output

as

declare @Existe integer,

@Control char(1)

begin

  select @Control = USER_CHEQ_NIVEL from

    tb_data_seg_def_user where

    USER_ID = @usuario and USER_STATUS = 'A'

  if @Control = 'S'

    begin

      select @ingresar = COUNT(GRUS_ID) from

        tb_data_seg_rel_grus where

        GRUS_ID = @usuario and AUDI_COD_TRAN = '102001'

    end

  else

    begin

      select @Ingresar=1

    end

end

 

In my form i have this:

 

 

 

Declare wsp_permisoInventario procedure for PermisoDocumentoInventario

  @usuario = :gs_user,

  @Ingresar = :ii_ing output

using sqlca;

 

execute wsp_permisoInventario;

 

But PB show me error:

 

DATABASE C0038 SQLSTATE 0 37000 Sybase ODBC Driver. Syntax error or access violation: near 'OUTPUT'

 

Why is the error?

 

Regards

 

Victor Carrión


Viewing all articles
Browse latest Browse all 2935

Trending Articles