APPX Runtime Subroutine API
Find a subroutine to call from APPX ILF. Open its reference for parameter order, shared fields, and a usage example.
Find a routine
Browse by category
Use these routines inside a handler for the APPX Data API (release 5.5.0 and later).
- .DATA BAD REQUEST
- Return a JSON error message to the Data API caller, defaulting to “Invalid Request”.
- .DATA DEBUG LOG
- Write a timestamped entry to the Data API log configured in APPX_DATASVC_LOG.
- .DATA GET PARAM VALUE
- Read a named request parameter with a selectable lookup order across GET, POST, and URL values.
- .DATA WRITE STREAM
- Send --- STREAM BUFFER to the Data API caller as UTF-8 and clear the buffer.
Available from APPX 6.2.0. Choose the parser that matches where your JSON is stored.
- .JSON PARSE
- Parse a JSON string into APPX records, choosing the result file by value size.
- .JSON PARSE FILE
- Parse a JSON file into APPX records, choosing the result file by value size.
Available from 5.4.7 on the APPX 5 line and 6.0.1 on the APPX 6 line.
- .RBS HIERARCHY MTCE
- Open Security Hierarchy Maintenance from an application to delegate hierarchy editing.
- .RBS PROCESS SECURITY
- Open access control list maintenance for an existing parent/child process pair.
- .RBS REGEN
- Rebuild the role-based security cross-reference for a changed application version.
- .RBS UPDATE SECACL
- Add, change, or delete access control records directly in SECACL.
- .STREAM CLOSE
- Close a named stream and release its resources.
- .STREAM CLOSE ALL
- Close all open streams.
- .STREAM OPEN
- Open a named stream for a file, a URL, or the output of an operating system command.
- .STREAM READ
- Read data from an open stream into a shared buffer.
- .STREAM WRITE
- Write a buffer to a stream opened for writing or appending.
- .TEXT CREATE PAD
- Fill a field with a repeating character up to the requested length.
- .TEXT CUT AT POS
- Remove characters at a given position and optionally return the removed text.
- .TEXT FIND
- Return the position of a case-sensitive match within a field.
- .TEXT FIND AND REPLACE
- Replace or removes matching text, optionally limiting how many matches to change.
- .TEXT FROM UNICODE
- Encode Unicode text into a RAW alpha field using the specified character encoding.
- .TEXT GET LENGTH
- Return the length of the text stored in a field.
- .TEXT GET UNINAME
- Return the Unicode name of the first character in a string.
- .TEXT INSERT AT POS
- Insert text at a specified character position in a field.
- .TEXT LOWER TO UPPER
- Convert text to uppercase or capitalize the first letter of selected words.
- .TEXT PARSE LINE
- Split a delimited line into fields, using a tab as the default delimiter.
- .TEXT SET UNINAME
- Look up a Unicode character by its name.
- .TEXT TO UNICODE
- Decode a RAW alpha field into Unicode using the source character encoding.
- .TEXT UNICODE COMP
- Compare two Unicode strings without regard to case and return their sort order.
- .TEXT UPPER TO LOWER
- Convert text to lowercase, with options for preserving initial capitals.
- .UTIL ADD HOOK
- Add a permanent process hook that takes effect at the next login.
- .UTIL ADD USER
- Create an APPX user from a 0SA USER record.
- .UTIL CHECK RBS
- Check a user's role-based access to a parent/child process pair, record, or field.
- .UTIL CHECK SECURITY
- Check a user's security code for a database and operational phase in applications using security classes.
- .UTIL CHG AUX PASS
- Change or clear the auxiliary password for an APPX user.
- .UTIL CHG HOOK
- Update selected fields on a permanent process hook for subsequent logins.
- .UTIL CHG USER
- Update selected fields on an existing APPX user record.
- .UTIL CLEAR PASS LIST
- Discard pending PASS values before they reach the next subroutine.
- .UTIL COMPILE PROC
- Compile one process, all processes of a given type, or an entire application version.
- .UTIL COMPUTE HASH
- Compute a string's SHA-2 hash and return it as binary data or hexadecimal text.
- .UTIL DEL HOOK
- Remove a permanent process hook for subsequent logins.
- .UTIL DEL USER
- Delete an APPX user and optionally remove the user's keymap.
- .UTIL EMAIL
- Send email with optional attachments through the server's configured mail command.
- .UTIL FIELD GET
- Read a field occurrence by application and field name and return its value as text.
- .UTIL FIELD SET
- Set a field occurrence by application and field name using a value supplied as text.
- .UTIL GET EM NAME
- Look up the eight-character executable module filename for a process.
- .UTIL GET HOOK RECORDS
- Copy active engine hooks into the temporary --- HOOK file for editing.
- .UTIL GET MESSAGES
- Collect errors, warnings, and messages in --- MESSAGES so the caller can read them.
- .UTIL KILL SESSION
- Request cancellation of a process by its numeric process ID, subject to user permissions.
- .UTIL LOAD STACK FILE
- Populate --- STACK with one record for each process in the current process family.
- .UTIL MAKE DYNAMIC KEY
- Listed in the reference as unimplemented.
- .UTIL MARK REWIND
- Return to a labeled process and close the intervening processes.
- .UTIL MARK SET
- Assign a label to the current process so .UTIL MARK REWIND can return to it.
- .UTIL MOD SCROLL BEHAV
- Enable click or Enter to select a record from a scrolling input image's Option Intercept event point.
- .UTIL PROCESS DD
- Process the data dictionary for one file or a whole application version, optionally including work fields.
- .UTIL PROCESS QRY REC
- Add the current PCF record to the query pointer file from Establish PCF Range.
- .UTIL PUT HOOK RECORDS
- Activate the edited hooks in --- HOOK for the rest of the user's session.
- .UTIL SECR REST
- Restore archived security codes for the selected applications and versions.
- .UTIL SECR SAVE
- Archive security codes for the selected applications and versions, replacing the previous archive data.
- .UTIL SLEEP
- Pause the calling process for a specified number of seconds.
- .UTIL SLEEP WITH TIMER
- Pause for a specified number of seconds and display a countdown when a positive refresh interval is supplied.
- .UTIL SUBR CLOSE
- Close and compile the subroutine opened with .UTIL SUBR CREATE.
- .UTIL SUBR CREATE
- Create a named subroutine in an application version so ILF statements can be added.
- .UTIL SUBR DELETE
- Delete a named subroutine from the selected application version.
- .UTIL SUBR WRITE ILF
- Append one ILF statement to the subroutine opened with .UTIL SUBR CREATE.
- .UTIL SWITCH USER
- Switch subsequent processes to another APPX user using that user's login ID and auxiliary password.
- .UTIL TIMEOUT EXIT
- End the current process or log out the user when a previously set keyboard timeout expires.
- .UTIL TIMEOUT SET
- Set the inactivity interval in seconds that raises the TIMEOUT option.
- .UTIL UPDATE DOCUMENT
- Update or clear user or technical documentation for an application, domain, record, field, or process.
- .IMPORT CGI DATA
- Read CGI form data from standard input into matching APPX fields in a session started by a web server.
Import and purge belong to application 0DX. The XML Writer routines in --- create XML files and are available from APPX 6.2.0.
- .XML IMPORT
- Read an XML file into 0DX work files and optionally import it using a mapping.
- .XML PURGE
- Remove the 0DX work records for one XML import session.
- .XML WRITER ADD ATTR
- Add an attribute name and value to the current XML element.
- .XML WRITER ADD DATA
- Write data into the current XML element or CDATA section.
- .XML WRITER CDAT END
- Close the current CDATA section.
- .XML WRITER CDAT START
- Start a CDATA section for text that should be written literally.
- .XML WRITER CLOSE
- Close the XML output file and release the writer’s resources.
- .XML WRITER ELEM END
- Write the closing tag for the most recently opened XML element.
- .XML WRITER ELEM START
- Write the opening tag for a named XML element.
- .XML WRITER OPEN
- Create an XML file on the server and write its declaration, replacing any existing file at that path.
Topic revision: r35 - 03 Dec 2026, AdminUser
- This page was cached on 03 Dec 2026 - 19:31.
Powered by
Foswiki. Wiki content belongs to its contributing authors.