Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IMPORT statement with dynamic variable

Former Member
0 Likes
433

Friends, Need Help!!!!!!!

Im trying IMPORT variable contents from a cluster table VARI. I can do a IMPORT without issues when I use exact name of the variable but I have issues with dynamic variable selection. Pls see code below.

loop at objects.

assign objects-name to <fs>.

IMPORT <fs> to tmp_var from database vari(va) id st_key.

endloop.

I do not get any value to tmp_var. Need help!

thanks

Bhaskar

3 REPLIES 3
Read only

Former Member
0 Likes
396

Friends......suggestions plssss

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
396

Try this.

loop at objects.
IMPORT (objects-name) to tmp_var from database vari(va) id st_key.
endloop.

Does it work?

Regards,

RIch Heilman

Read only

Former Member
0 Likes
396

Rich,

No Luck...I tried this but its a syntax error as "(" cannot be used as part of name.

any inputs would be greatly appreciated.

thnx