|
Hi,
I am trying to insert a record into a file using SQL. The field file
is defined as 3.0P. My input is a numeric float field that is passed as a
parameter from a SQL server. If I leave out the numeric field, the insert
works, when I add it, no record is added. This is what I have:
D WkOpNo S 15 5
D SvOpr S 3 0
OpNo is defined in a printer spec as 3.0
C EVAL WkOpNo = %DEC(InOpNo:5:2)
C EVAL OpNo = WkOpNo
C/EXEC SQL
C+ INSERT INTO V64BPCSUTF/SVL (SVID, SVORD, SVOPR) VALUES('SV',
C+ :WkOrdN, :OpNo) WITH NC
C/END-EXEC
I know there is some extra stuff in here. Its been added to try to get this
to work. Any ideas on what is holding this up? I am calling this from an
SQL server and can't do a debug. When I check SQLSTT, it is 00000.
<===================================================>
Terri Harteau
Felker Brothers Corporation
****************
"The happiest people don't necessarily have the best of everything.
They just make the best of everything!"
****************
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.