PS Query & SQL

 View Only
  • 1.  Querying Enrollment Requests for running totals of units

    Posted 04-24-2025 12:04 PM

    I'm working on querying Enrollment Request data to build a running total of a student's units over time. For this, I need to only consider requests that actually went through, but I've found that some of the transactions resulting in "Message" are successful, but not all of them. Is there a way to identify which "Message" statuses are which? I'm hoping I don't have to go one-by-one through every message type we've ever had just to sort through them and come up with a CASE statement...

    Thanks in advance!



    ------------------------------
    Scott Douglas
    Sr. Business Systems Analyst, Student Information Systems
    Azusa Pacific University
    ------------------------------
    Alliance 2026 Registration is Open!


  • 2.  RE: Querying Enrollment Requests for running totals of units

    Posted 04-25-2025 10:49 AM

    I hate to burst your hopes... but there is more than just the Message status to be leery about when trying to analyze Enrollment Request records.  I've tried using these as a way of recreating credit counts over time as well and ran into all sorts of issues.  Some may be specific to what a university allows or doesn't allow to be done with Enrollment Requests and others may be how the system is configured for handling retention of dropped classes in STDNT_ENRL.  Enrollment Requests can sometimes be opened and reprocessed which can change the assigned status and message.   Proper handling of swaps and Auto Enrolled classes also need to be taken into consideration.

    If it helps, when it comes to Messages with a MSG_SEVERITY of M, I only came across Message Set Nbr 14640 and 14641, Message Nbr 154 as a successful enrollment.

    It has been a while since I have attempted this.  I got a lot to match, but could never get to the point where I could get a 100% match on all terms I ran it against.

    Hopefully you have better success than me.



    ------------------------------
    Mark Miszewski
    Senior PeopleSoft Developer
    Cornell University
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!


  • 3.  RE: Querying Enrollment Requests for running totals of units

    Posted 04-25-2025 12:12 PM
    Mark,
     
    I appreciate your words of caution. I've tried a few times myself, but I'm older and have a few more tools in the belt, perhaps including some hubris. I'm making progress. It seems the messages received at an institution are very personalized, as I've narrowed things down to around 21 distinct message nbrs (many shared between the admin 14640 and the Self-Service 14641) that I'll comb through. Another complicating factor is that in some cases there can be multiple messages on the same enrollment request sequence. I'm guessing the sequence matters to some degree, but I've learned not to make assumptions on this point.
     
    I hadn't thought too deeply yet about resubmitted requests, or how that might manifest, though I'm assuming (perhaps naïvely) that if a request is resubmitted, it would only be because the previous attempt failed, which I would want to filter out, anyway. Feel free to educate me differently-- I'm all ears.
     
    I think I have Swaps and Drop if Enroll figured out, though getting the previously-added units has required some left joins.
     
    I'm also considering using Event Mapping on the "Enrollment" component so that I can capture adds/drops/changed units to a custom record, since these changes do not go through the enrollment engine. Chances are that even if I get this working, it might be too slow to run as a view-- I might have to materialize it or something. I'll try to remember to update this thread with my findings.


    ------------------------------
    Scott Douglas
    Sr. Business Systems Analyst, Student Information Systems
    Azusa Pacific University
    ------------------------------

    Alliance 2026 Registration is Open!


  • 4.  RE: Querying Enrollment Requests for running totals of units

    Posted 04-25-2025 12:02 PM

    We have created a way that has worked for us at UC Berkeley with a series of 10 views to develop an effective dated and sequenced tracking of enrollment requests.   As @Mark Miszewski brought up, we are looking at Message Set Nbr and Message Nbr, which means we have had to make adjustments over time to deal with Oracle updates. We started with Message Set Nbr 14640 &14641 and then added 14642 & 14643 with fluid updates.  It works with how our classes and enrollments are set up, but it may not necessarily work for others. The only messages we have found that we need to account for are for the waitlist. Then other scenarios we account for in different views, including separating two-part enrollment on two separate lines.

    • UC_ENRLRQDTL_BV - Base View to limit only requests that might lead to something
    • UC_ENRLRQDTL_V1 - Simple, straightforward enrollments
    • UC_ENRLRQDTL_V2 - Drop if enrolled in a swap
    • UC_ENRLRQDTL_V3 - 2nd part of drop if enrolled in a swap
    • UC_ENRLRQDTL_V4 - Change to enrolment
    • UC_ENRLRQDTL_V5 - 2nd part of change to enrolment
    • UC_ENRLRQDTL_V6 - Cancel Class 
    • UC_ENRLRQDTL_V7 - Withdraw
    • UC_ENRLRQDTL_VW - Union all of View 1 to 7
    • UC_ENRLRDTL_FVW - Final front-facing view available in query manager


    ------------------------------
    Ross Nolan
    Data and Reporting Analysis
    University of California, Berkeley
    rvnolan@berkeley.edu
    ------------------------------

    Attachment(s)

    txt
    UC_ENRLRQDTL_V6.txt   1 KB 1 version
    txt
    UC_ENRLRQDTL_V5.txt   835 B 1 version
    txt
    UC_ENRLRQDTL_V7.txt   780 B 1 version
    txt
    UC_ENRLRDTL_FVW.txt   560 B 1 version
    txt
    UC_ENRLRQDTL_V4.txt   527 B 1 version
    txt
    UC_ENRLRQDTL_VW.txt   358 B 1 version
    txt
    UC_ENRLRQDTL_V1.txt   815 B 1 version
    txt
    UC_ENRLRQDTL_V2.txt   434 B 1 version
    txt
    UC_ENRLRQDTL_V3.txt   746 B 1 version
    txt
    UC_ENRLRQDTL_BV.txt   1 KB 1 version
    Alliance 2026 Registration is Open!


  • 5.  RE: Querying Enrollment Requests for running totals of units

    Posted 04-25-2025 12:13 PM

    Ross,

    Wow, that's a lot of views! A granular approach might end up being more performant than my approach, though. I'll take a look. Much appreciated!



    ------------------------------
    Scott Douglas
    Sr. Business Systems Analyst, Student Information Systems
    Azusa Pacific University
    ------------------------------

    Alliance 2026 Registration is Open!


  • 6.  RE: Querying Enrollment Requests for running totals of units

    Posted 04-25-2025 01:30 PM

    Scott,

    Something I forgot to add was that we did have all those views into one SQL statement, but are DEV team wanted them separated out so that updates can be made on smaller, more targeted views. This has had pros and cons as expected, but updates have been generally easy.  The view does take a while to run, especially when looking at more than one student.  Most of the time, the final view is used to find the status of a student's enrollments at any given point in time.  



    ------------------------------
    Ross Nolan
    Data and Reporting Analysis
    University of California, Berkeley
    rvnolan@berkeley.edu
    ------------------------------

    Alliance 2026 Registration is Open!