Alright, so the SQLI works fine and PREP_PROCESS_VAR works as well, but how do I feed the resulting values into the READ statement? I created a variable and formatted the values into the text that READ requires, but it looks like as-is it's just reading the variable value and not reading it as literal text.
Here's what I've got, which currently doesn't work, but the values are present in the &HGLIST# variable.
:SET &HND#=PREP_PROCESS_VAR(TOOLS.VSQLI.TEST)
:SET &HGLIST# = """"
:PROCESS &HND#
: SET &HG# = GET_PROCESS_LINE(&HND#,1)
: SET &HGLIST# = STR_CAT(&HGLIST#, "'")
: SET &HGLIST# = STR_CAT(&HGLIST#, &HG#)
: SET &HGLIST# = STR_CAT(&HGLIST#, "',")
:ENDPROCESS
:CLOSE_PROCESS &HND#
:SET &HGLENGTH# = STR_LENGTH(&HGLIST#)
:SET &HGLENGTH2# = SUB(&HGLENGTH#,1)
:SET &HGLIST# = STR_CUT(&HGLIST#,1,&HGLENGTH2#)
:SET &HGLIST# = STR_CAT(&HGLIST#, """")
User input
:BEGINREAD "Please specify the HostGroup:"
: READ &HOSTGROUP#,&HGLIST#,'HOSTGROUP',,M
:ENDREAD
Thoughts?