× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.