Precompilers and OCI (MOSC)

MOSC Banner

ansidyn2.pc sample program output.

edited Dec 6, 2010 1:26AM in Precompilers and OCI (MOSC) 4 commentsAnswered
 Hi All,
   I have certain clarifications on the output of the sample program ansidyn2.pc output. When I compile and run the code, I am printing the length of the data returned using REF RETURNED_LENGTH. When I give the output array size as 1 then I am getting proper expected value (ie) example below

[oracle@lang-gang vesubsub]$ ./ansidyn2

username: scott
password: tiger

Connected to ORACLE as user scott.

SQL> select * from emp where empno in (7369,7499);

Enter value for output array size (max is 100) :  1

EMPNO        ENAME         JOB               MGR          HIREDATE     SAL                     COMM           DEPTNO
7369[0x4][4] SMITH[0x5][5] CLERK[0x5][5]     7902[0x4][4] 17-DEC-80[0x9][9] 800[0x2a0003][2752515]  NULL[(nil)][0] 20[0x2][2]

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