Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

getting data from DB tables to BF variables

Hi, we need to get data from Oracle tables and use it during BF project.
I can't find any examples how to do it.
I guess we can work with DB from command line but how to set BF variables with values from Oracle tables?

Thank you!

0 votes



One answer

Permanent link
Hi, we need to get data from Oracle tables and use it during BF project.
I can't find any examples how to do it.
I guess we can work with DB from command line but how to set BF variables with values from Oracle tables?

Thank you!


Hi,

One way you could do this is to use the .set or .bset dot commands with a command to get the value between backticks. For example, the syntax would look like the statements below.

.set env <Env_Group_Name> "<Variable_Name>=`Command To Get Value`"

.bset env "<Variable_Name>=`Command To Get Value`"

For the command to get the value, if your program to get the value from Oracle DB only printed that value you could add that in the backticks or perhaps just cat/type a text file that has the value.

bju

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 29 '10, 5:58 a.m.

Question was seen: 6,356 times

Last updated: Apr 29 '10, 5:58 a.m.

Confirmation Cancel Confirm