Linux Operating System (MOSC)

MOSC Banner

Proc* C program not handling values correclty

edited Jul 4, 2017 5:03AM in Linux Operating System (MOSC) 1 commentAnswered

Hi ,

I have a program which writes data into a file in specified format.

But I am facing strange problem here , The Host variable's indicator variable is not handling values properly .

Driving cursor fetches values for a particular field alternative_item from the database.

But in the output file I am not able to see any of the values fetched for that particular field , i suspect below lines of code is not handling values correctly.

Also attached the program itself.

/* Deal with NULLS returned by the cursor */

                if (relex_ind_array[rec].i_replaced_by       == -1) relex_data_array[rec].s_replaced_by[0]       = '\0';

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center