471,887 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 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 1577
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Marco Jez | last post: by
11 posts views Thread by Magdelin | last post: by
1 post views Thread by Mahesh Devjibhai Dhola | last post: by
26 posts views Thread by empriser | last post: by
reply views Thread by zermasroor | last post: by

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.