Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem when assigning variable content used by a query

Status
Not open for further replies.

yard250

Programmer
Apr 28, 2005
9
0
0
BE
Hello,

I've a probleme when assigning a variable content to a query designed trough Database Interface Designer, used by a simple map as input, the whole set running on a IBM RS system.

My query, defined in the Database Interface Designer, is:

select * from table where field = '#TEST#'

This is the input of a simple map.
I build my map with as target an IBM RS 6000.
I deploy my map on the server and launch it with:

mercator mymap.aix -ID1 -VARTEST=valueok

'valueok' is a value returning records.

But calling mymap with this syntax returns nothing !
When I hard-code in the query the value 'valueok', I've a result.

What's wrong with this syntax ?

Thanks a lot,

Kind regards
 
It would help :)



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Thanks Bocaburger,

But what is the exact syntax to use ?

mymap.aix -ID1 -VAR ...?

(as my variable is called TEST and the content is VALUE)

My SQL is always:

select * from table where field = '#TEST#'

Thanks a lot !
 
So the syntax should be
mercator mymap.aix -ID1 '-VAR TEST=VALUE'

If this doesn't work, send a report to Ascential support.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top