SSELECT syntax question
Posted: Fri Jan 02, 2009 4:06 pm
Have a syntx question on something culled from a Ken Bland utility job that processes jobs by selecting them based on their categories in DS_JOBS. For example:
Build a select list for all jobs where the category is equal to "xxx". What I'd like to do is modify it slightly so that it returns those jobs plus all of the jobs from any "subcategories" - i.e. categories under the named one. I can get close using LIKE but nothing quite stogy worthy as of yet.
Mostly works as it gets me the subcategories but it also matches other categories that start with the same name, i.e. "xxxyyy".
Mostly works as it gets me the subcategories and not other matching categories but it also excludes any jobs in the main "xxx" category rather than in a subcategory.
Any suggestions? There's probably a simple answer here that I'm just not seeing right now...
Code: Select all
SSELECT DS_JOBS WITH F3 = "xxx"Code: Select all
SSELECT DS_JOBS WITH F3 LIKE "xxx..."Code: Select all
SSELECT DS_JOBS WITH F3 LIKE "xxx\..."Any suggestions? There's probably a simple answer here that I'm just not seeing right now...