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.
Code: Select all
SSELECT DS_JOBS WITH F3 LIKE "xxx..."
Mostly works as it gets me the subcategories but it also matches
other categories that start with the same name, i.e. "xxxyyy".
Code: Select all
SSELECT DS_JOBS WITH F3 LIKE "xxx\..."
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...