Thanks for providing the character limit for the prompts Scott. I'm always learning from you.
To be honest, I don't know if there is an advantage to the REGEXP_
I haven't used this expression in a few years.
I just remembered having it in my "bag of dirty tricks and hacks" and thought I'd throw it out here in case anyone can benefit from it.
...it's probably something I learned at Alliance.
Scott Frey
Senior Data Analyst-HRIS, Employee Services
University of Colorado
1800 Grant Street, Suite 400
Denver, CO 80203
t 303 860 4200
Scott.Frey@cu.edu
www.cu.edu

Original Message:
Sent: 11/13/2025 12:23:00 PM
From: Scott Nishizaki
Subject: RE: What's your favorite expression, case statement, trick?
I think the posts may renumber themselves if one of us adds a reply to a "higher up" post.
We've utilized this prompt method before, and agree that INSTR(:1, A.EMPLID) > 0 is the only way we've found to allow this. Calling this a "limited number" is a bit unfair since a PS Text prompt can handle 4,000 characters (this is the PS universal limit for a Char vs CLOB) So even if you're doing 'EMPLID1', 'EMPLID2',... you could get at least 266 IDs (assuming you use all 11 characters in EMPLID).
@Scott Frey, I'm wondering why you use REGEXP_INSTR(...) rather than INSTR(...). Is there an advantage to this?
------------------------------
Scott Nishizaki
Connected Campus Community of Practice
Developer/Analyst
Azusa Pacific University
------------------------------
Message from the :
------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the .
------------------------------
Original Message:
Sent: 11-13-2025 10:32 AM
From: Scott Frey
Subject: What's your favorite expression, case statement, trick?
Good morning Bob & Kendall,
I wasn't able to locate Post #44 in my blizzard of emails, so I apologize if this is redundant.
I use the following INSTR expression and criteria. As previously mentioned, this method is limited by the field width of PSQuery prompts, and by the character-count of whatever field you're using in the prompt. Prompt values are comma-space separated when entered, e.g.
XXXXX1, XXXXX2, XXXXX3, XXXXX4, etc.
In this example, I'm prompting for EmplID. Univ. of Colorado uses 6-digit EmplIDs, and I think I can search five at a time. I don't use this option very often. My customers are usually FAs. But it does have its applications.
(CASE
WHEN REGEXP_INSTR(:1, A.EMPLID) > 0
THEN A.EMPLID
END)
=
A.EMPLID
------------------------------
Scott Frey
Senior Data Analyst - Human Resource Information Systems
University of Colorado System
------------------------------
Message from the HEUG Marketplace:
------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
------------------------------
Original Message:
Sent: 11-13-2025 06:26 AM
From: Robert Fogarty
Subject: What's your favorite expression, case statement, trick?
Kendall,
The only way that I have been able to add a list through a prompt is using INSTR as detailed in post #44 of this thread
Bob
--
Bob Fogarty
LionPATH - Reporting Team Lead
The Pennsylvania State University
Original Message:
Sent: 11/12/2025 4:43:00 PM
From: Kendall Vance
Subject: RE: What's your favorite expression, case statement, trick?
Speaking of ANY()/ALL(), does anyone know if it is possible to use a prompt to pass the list of values. I've tried a few things, but nothing worked.
So, Instead of ANY('11111111','22222222',...), something like ANY(:1). Can it be done?
------------------------------
Kendall Vance
IT Technical Associate for Financial Aid Reporting
Northern Illinois University
------------------------------
Message from the HEUG Marketplace:
------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
Original Message:
Sent: 11-04-2025 12:29 PM
From: Robert Fogarty
Subject: What's your favorite expression, case statement, trick?
The complimentary expression for not in list is
<> ALL('10000001','10000002','1000003')
Bob
--
Bob Fogarty
LionPATH - Reporting Team Lead
The Pennsylvania State University
Original Message:
Sent: 11/4/2025 12:23:00 PM
From: Morgan Andres
Subject: RE: What's your favorite expression, case statement, trick?
I use this all the time and have screamed it from the rooftops at my university, but I learned it from Robert Fogarty at Alliance a couple years ago. It would have been such a great tool when implementing for testing.
Morgan Andres
Senior Business Systems Analyst
Student Information Services and Systems (SISS)
Duke University
1121 West Main St., Suite 2200
Durham, NC 27701
E-mail: morgan.andres@duke.edu
Original Message:
Sent: 10/30/2025 12:16:00 PM
From: Timothy Krug
Subject: RE: What's your favorite expression, case statement, trick?
I love this one, and I learned it from you, Scott! But then at this year's Alliance, I mentioned it, and some delightful soul (whose name I have shamefully forgotten....please identify yourself if you're reading this!) told me you can use "ANY" instead to make it simpler. All you have to do is set EMPLID = [an expression]. The expression text is ANY('10000001','10000002','1000003') except of course you use real EMPLIDs. Then you can skip the "and 1 = 1" bit!

------------------------------
Timothy Krug
Consulting Manager
Huron Consulting Group