The following example shows how you use query functions in succession. Assume that you want to know all the basic states that are descendants of the state
S1
.VARIABLE
STATE st_id;
INTEGER status;
LIST OF STATE descen_states, basic_states;
.
.
st_id := stm_r_st (’S1’, status);
descen_states := stm_r_st_physical_desc_of_st (
{st_id}, status);
basic_states := stm_r_st_basic_st (descen_states,
status);
.
.
Note that
descen_states
is not enclosed in braces because its value comprises a list of states.