473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem With Pro*c

int load_convers_data()
{
char *function = "load_convers_data";
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_CODE] = "";
int li_in_season;
int li_stat_cube_ind = 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_outfile, "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 1691
ra****************@gmail.com wrote:
int load_convers_data()
{
char *function = "load_convers_data";
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_CODE] = "";
int li_in_season;
int li_stat_cube_ind = 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_outfile, "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
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...
3
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 {...
8
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...
2
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...
11
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...
1
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...
2
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...
1
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...
26
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.