I'm attempting to use UCI with a CALL() statement to write a record in Universe, but my passed argument gets an "Invalid data type" during subroutine execution:
./sql -c 1 "CALL INTERCALL.LOG.COMMENT ('S2734042','1','MTAWEB','This is a test')"PRINT RESULTS:Program "OE.ADD.COMMENT": Line 81, Improper data type.
The indicated line in the subroutine is simply a READV call with the second argument to the passed value:READV LED12 FROM LEDFILE,OID,12 ELSE LED12 = ''
My called subroutine simply calls OE.ADD.COMMENT, reorienting the arguments. After getting this error, I thought that perhaps calling ICONV or OCONV on the passed argument might help to convert it to an acceptable data type, but to no avail. I also checked the values with PRINT and verified that the values are indeed getting passed (so another error didn't cause them to be NULL).
The only thing I can think of at this point is that the arguments are tainted, and the use is restricted.
------------------------------
Tilghman Lesher
Senior Developer
Self Registered
WHITES CREEK TN US
------------------------------