Code & SQL Text Search
Categories:
- Target Database: —
- Context Type: —
- Alert Severity: —
- Triggered Time: —
- Firing Context:
—
Code & SQL Text Search Report
Report ID: code-sql-search
Category: Objects / Development
Purpose
The Code & SQL Text Search report performs text searches across PeopleCode, standalone SQL Objects, and Application Engine SQL statements. It returns matched line numbers, surrounding code context, and deep links to psLens detail pages.
Use this report when searching for references to deprecated fields, custom function calls, hardcoded URLs, or specific SQL statements.
Metadata Tables Searched
PSPCMTXT(PeopleCode Source Text): Searches plain-text PeopleCode across Record, Page, Component, Component Interface, App Package, Message, App Engine, and Menu PeopleCode programs. Concatenates multi-rowPROGSEQsequences to compute line numbers and extract 2-line code context.PSSQLTEXTDEFN(SQL Object Source Text): Searches SQL text for views, standalone SQL objects, App Engine SQL definitions, and App Class SQL statements. Concatenates multi-rowSEQNUMrows to return line-level matches.PSAESTMTDEFN(App Engine SQL Actions): Searches inline SQL action statements embedded directly within Application Engine steps.
Report Output
The generated Markdown output contains:
- Summary: Total match counts broken down by PeopleCode, SQL Objects, and App Engine SQL.
- PeopleCode Matches: Program type, record or package name, event or class name, line number, and a syntax-highlighted code block with surrounding context lines and a match indicator (
<-- MATCH). - SQL Object Matches: SQL ID, line number, code snippet, and deep links to
/sqlobjects/{SQLID}. - App Engine SQL Matches: Application Engine ID, section, step, line number, code snippet, and deep links to
/appengines/{APPLID}.
Parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
search_term | Yes | String | The text string to search for across code and SQL text. | |
scope | No | String | All | Search scope: All, PeopleCode, or SQL. |
case_sensitive | No | Boolean | false | Set to true to perform exact case-sensitive text matching. |
custom_only | No | Boolean | false | Set to true to filter for items last updated by non-PPLSOFT user IDs. |
max_results | No | Integer | 200 | Maximum total matches to return in the report output. |
Use Cases
- Impact Analysis: Before modifying a record field or function signature, search
PSPCMTXTto locate all calling locations. - Hardcoded Reference Audit: Search for hardcoded URL paths, IP addresses, or environment-specific strings in PeopleCode and SQL objects.
- Upgrade & Tax Update Triage: Search for modified SQL views or Application Engine SQL statements when evaluating target database releases.