sharika_ganju
New Member
Hi All,
I had a small doubt. I have a program as follows :
define variable v_database as character no-undo.
mainloop.
repeat :
run p_sample (input v_database).
end.
procedure p_sample:
define input parameter v_database as character no-undo.
for each v_database.vd_mstr no-lock:
display v_database.vd_mstr.vd_addr.
end.
end.
The problem that I am facing is how to execute "v_database.vd_mstr", which gives a progress error. Is there any way in a internal procedure where the database name can be taken as an input and used for querying a table ? Please advice.
Thanks in advance.
I had a small doubt. I have a program as follows :
define variable v_database as character no-undo.
mainloop.
repeat :
run p_sample (input v_database).
end.
procedure p_sample:
define input parameter v_database as character no-undo.
for each v_database.vd_mstr no-lock:
display v_database.vd_mstr.vd_addr.
end.
end.
The problem that I am facing is how to execute "v_database.vd_mstr", which gives a progress error. Is there any way in a internal procedure where the database name can be taken as an input and used for querying a table ? Please advice.
Thanks in advance.