dbTalk Databases Forums  

User-defined queries and replaceable parameters using Oracle OCI Input stage

comp.databases.olap comp.databases.olap


Discuss User-defined queries and replaceable parameters using Oracle OCI Input stage in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
z1hou1@gmail.com
 
Posts: n/a

Default User-defined queries and replaceable parameters using Oracle OCI Input stage - 01-01-2006 , 04:31 PM






To: "DATASTAGE DEVELOPERS" <DATASTAGE-DEVELOPERS (AT) googlegroups (DOT) com>
Subject: User defined queries in Oracle OCI Stage on the input stage
Date: Sun, 01 Jan 2006 22:25:14 -0000

Hi,
Is it possible to use a replaceable parameter on a user-defined input
query on the Oracle OCI input stage?

I ran into a situation where a customized query must run with two
parameters. I can call this job from a control job by passing it
parameters through the Call DSSETPARAM basic call.

I would like to then use these parameters in a user-defined query. So,
if I am passing P1 and P2 as parameters for the job, I would like to
the query to use P1 and P2.

I did not see any specific documentation that states that a
user-defined query can handle a replaceable parameter. I tried to use
#P1# and it did not work.

To repeat the question, can we use replaceable parameters on a
user-defined query?

Thanks for your help.


Reply With Quote
  #2  
Old   
z1hou1@gmail.com
 
Posts: n/a

Default Re: User-defined queries and replaceable parameters using Oracle OCI Input stage - 01-03-2006 , 10:10 AM






I have found out we can. It was more synatical errors that caused the
problems that I have shown above. The usual #param# may be used in a
user-defined query. I had used a date and the TO_DATE conversion was
incorrect.

Hence the answer is yes, a parameter can be used in a user-defined
query.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.