473,721 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem With Pro*c

int load_convers_da ta()
{
char *function = "load_convers_d ata";
long i;
int j;
int li_return;

char ls_scale_cnstr_ dimension_uom[NULL_UOM] = "";
char ls_scale_cnstr_ weight_uom[NULL_UOM] = "";
char ls_scale_cnstr_ curr[NULL_CURRENCY_C ODE] = "";
int li_in_season;
int li_stat_cube_in d = 0;

/* check what constraint types are defined for scaling; */
/* if "M" (mass) or "V" (volume), get target weight or dimension
uom */
/* if "A" (currency amount), get target currency code */

fprintf(fp_outf ile, "ls_scale_cnstr _dimension_uom = %s\n",
ls_scale_cnstr_ dimension_uom);

The Last line prints the garbage value in the file and the value is
not consistent.

NULL_UOM is macro defined as 5. Its happening in only specific
scenario. Can Anyone throw some light on it.

Aug 31 '07 #1
1 1703
ra************* ***@gmail.com wrote:
int load_convers_da ta()
{
char *function = "load_convers_d ata";
long i;
int j;
int li_return;

char ls_scale_cnstr_ dimension_uom[NULL_UOM] = "";
char ls_scale_cnstr_ weight_uom[NULL_UOM] = "";
char ls_scale_cnstr_ curr[NULL_CURRENCY_C ODE] = "";
int li_in_season;
int li_stat_cube_in d = 0;

/* check what constraint types are defined for scaling; */
/* if "M" (mass) or "V" (volume), get target weight or dimension
uom */
/* if "A" (currency amount), get target currency code */

fprintf(fp_outf ile, "ls_scale_cnstr _dimension_uom = %s\n",
ls_scale_cnstr_ dimension_uom);
There is no problem in the code you have posted. There may be a problem
in the code you use to open (and declare!) fp_outfile; there may be a
problem in the part of the code where you now have only comments; or
there may be a problem in later or earlier code.
If that code is ISO C, whittle it down to the smallest compilable sample
which still has the problem, and post that here.
If that code is not ISO C, but Pro*C, do the same, but post it in an
Oracle newsgroup - this group can't help you debug Oracle Pro*C code.

Richard
Aug 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1327
by: robert | last post by:
How do I get a remote XP Pro computer user on one domain to access and run a ..NET application on a different domain? Scenario: I was given a .NET application on domain (B) that I need to allow a remote XP PRO computer user to run from the other domain (A). The only way I have been able to get the application to run remotely is by having the XP PRO computer belong to domain (B) where the application resides, and using "RUN AS" under an...
3
1779
by: Marco Jez | last post by:
The following code reproduces a problem I'm having with the GCC compiler. It compiles fine on MSVC, so I'm wondering whether it is legal C++ code or not. template<typename C> struct Provider { template<typename T> static void func() {} };
8
4365
by: Don Riesbeck Jr. | last post by:
I have an C# EnterpriseService component that is part of an application I am developing that is responsible for writing data to an SQL Server. (it reads from a local DB (MSDE), then writes to a 'remote' DB (SQL Server 2k)...) On some machines I get the following exception: System.InvalidOperationException: An error occurred while enlisting in a distributed transaction. at...
2
1513
by: umilmi81 | last post by:
I am having a problem creating an ASP.NET application in Visual Studio.NET 2003, installed on Windows XP Professional I get a message stating that I do not have ASP.NET 1.1 installed, so I can not create web applications I downloaded the update that is supposed to install ASP.NET 1.1, but I'm still getting the message My research leads me to understand that VS.NET 2003 wont allow users to create web applications on anything "less" than...
11
1557
by: Magdelin | last post by:
Hi, I accidently uninstalled IIS 5.1 on my XP Pro workstation and I think I messed up my .Net framework. Then, I reinstalled IIS and ran aspnet_regiis -i. After this, all asp.net applications except one worked normally. This application is different from other as it is distributed (uses .Net Remoting), uses Crystal Reports 9 for web reports, uses Infragistics NetAdvantage suite controls and windows integrated authetication. The good...
1
1447
by: riscy | last post by:
I'm having odd behaviour of VS 2003 pro recently. It happen when Dell 9200 returned from repairs with new motherboard to fix audio out socket problem (as they say). I installed Visual Assist X and the went back to C# programming. On coding window I noticed that the as I put a comment, the blinking bar lag behind where I type, after 1-2 second, it jump back to position where I was typing. It annoying as I don't know where I was typing...
2
4671
by: chets | last post by:
Hi All, I am facing problem in executing one dynamic query in PRO *C program on linux. I want to update table mytable by data MADURAI for a column mycolumn1 where primary key is myPK.I want to use EXECUTE IMMEDIATE with context.But it is not working. Following is my piece of code. Please help. Thanks in advance. int main() {
1
1954
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and accessing the webservice each min. It was working 100% fine. Problem: But now in actual deployment, we have deployed webservice in Win Server 2003 and we have used all the default configurations. Now the clients are accessing that service the same way...
26
9319
by: empriser | last post by:
#define XLOG( ... ) \ do{ \ sprintf( SysBuf, " ", curtime(), __FILE__ , __LINE__ , __FUNCTION__ ); \ sprintf( SysBuf + strlen( SysBuf ), __VA_ARGS__ ); \ xlog( SysBuf ); \ }while(0) I compile the with Pro*c, but it gave me the error message... ,
0
8851
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8736
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9227
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5992
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4493
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3202
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2587
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2137
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.