by paulmac1968 » Wed Sep 05, 2012 7:11 pm
Alright... I got it to work. Looks like the problem is with the parameter I'm passing into the stored procedure I'm using. When I just embed the sql in the program, it works fine. So my next question is, what should the stp parameter look like.
To reset, the host variable that I use to pass to the stored procedure is defined like this....
01 VARIN-PAYLOAD-VARCHAR.
49 VARIN-PAYLOAD-VARCHAR-LEN PIC S9(4) USAGE COMP.
49 VARIN-PAYLOAD-VARCHAR-DATA PIC X(23000).
The 01 level is what I pass in. It's also the variable I used when I embedded.
In my STP I have the parameter defined as....
IN IN_PAYLOAD VARCHAR (23000) FOR BIT DATA,
My column definition looks like this in Catalog Mgr...
Cmd Column Name ColNo Datatyp Length Label PKNo Null Dflt Bit
----v----1----v----2----v----3----v----4----v----5----v----6----v----7--
POL_MSTR_FILE_CLOB 7 VARCHAR 23000 0 N N B
Thanks.
Paul