Analyzing mainframe SMF records using natural language
A natural language interface with AI orchestration addresses the inefficiencies in SMF data processing on mainframes by offloading tasks to external platforms, enabling real-time analysis and flexible querying of SMF data.
Patent Information
- Application Number
- US19/532402
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2026-02-06
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2046-02-06
AI Technical Summary
The processing of System Management Facility (SMF) data on mainframe computers is resource-intensive, time-consuming, and lacks flexibility, making real-time analysis impractical due to high computational demands and limited query capabilities, especially when dealing with compressed records and large data volumes.
A natural language interface utilizing an AI engine orchestrates the retrieval, parsing, and analysis of SMF data across multiple computing platforms, allowing users to submit queries in free-form language, offloading processing from the mainframe and utilizing specialized tools to handle specific data types, including decompression and schema-based database management.
Enables real-time or near-real-time responses to SMF queries, minimizes mainframe resource consumption, and facilitates timely operational insights by distributing data processing across external platforms, supporting unrestricted querying and reducing latency.
Smart Images

Figure US12817869-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to System Management Facility (SMF) data in mainframe computers in general, and to a system and method for analyzing SMF data using natural language, in particular.BACKGROUND
[0002] System Management Facility (SMF) is a core mainframe (z / OS) component, used for collecting and recording system activity, performance, and workload data about the underlying system. The recorded data may be used for analyzing performance, capacity, accounting, security, and other parameters of the system.
[0003] For example, SMF collects parameters relating to system performance, such as CPU utilization, memory consumption, I / O activity, and workload performance metrics including response times and delays. SMF also gathers workload and job data, including batch job start and end times, CPU usage, TSO / E user activity, started tasks, and address spaces. In addition, SMF records data from various subsystems, such as Customer Information Control System (CICS), IMS, DB2, WebSphere, and TCP / IP. Further, SMF captures security and auditing information, including RACF events and dataset or resource access. SMF may also collect accounting and billing information, such as chargeback or showback data, indicating which tasks or users consumed which resources and to what extent.
[0004] The SMF data may be used for performance tuning, capacity planning, resource allocation, chargeback, problem determination, audit and compliance and additional purposes.
[0005] The data is written to proprietary SMF data sets and is comprised of records. Each record is of a specific record type, for example type 30 relates to job accounting, type 110 relates to CICS, types 100-102 related to DB2, or the like. Some SMF record types may also be comprised of subtypes, for example, record type 110 subtype 1 is used for CICS performance monitoring records, while record type 110 subtype 2 is used for CICS statistics records.
[0006] Typically, the SMF data is accessed by dedicated applications which parse the data, such that it can be analyzed, wherein the dedicated applications are also executed by the MF.
[0007] Since every action of every program, resource or the like are registered, the SMF collects and stores enormous quantities of data, which may take a long time to process.
[0008] SMF records present a plurality of additional problems and limitations that make it hard to use them efficiently, as detailed below.BRIEF SUMMARY
[0009] One exemplary embodiment of the disclosed subject matter is a computer-implemented method comprising: receiving a mainframe-related query; providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine; retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query; storing the information on a storage device associated with a computing platform other than the mainframe computing platform; activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools: retrieve part of the information from the storage device; parse the part of the information to obtain parsed information; and store the parsed information in a structure having a scheme; obtaining, by the trained engine, the scheme from each of the second trained engines; providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query; receiving, by the trained engine, second responses to the second queries, the second responses are based on the parsed information obtained by each of the second trained engines; and generating, by the trained engine, a first response to the mainframe-related query based on the second responses to the second queries. The method can further comprise issuing at least one request by the trained engine to each of the second trained engines, the at least one request requesting at least one scheme of the structure created by each of the at least one tool from the collection of tools; and receiving the at least one scheme, wherein the second queries are based on the at least one scheme. Within the method, the trained engine and the second trained engines are optionally executed by one or more computing platforms other than the mainframe computing platform, thereby saving resources of the mainframe computing platform. Within the method, the information is optionally System Management Facility (SMF) information. Within the method, the SMF information optionally comprises data related to job accounting, Customer Information Control System (CICS), and DB2, wherein the plurality of second trained engines optionally comprises: a job accounting engine configured to process common address space work data; a CICS engine configured to process call elapsed and CPU times portion of the SMF; and a DB2 performance engine configured to process CICS transaction performance data. Within the method, the structured manner is optionally a database and the second query is optionally a Structured Query Language (SQL) query. Within the method, the mainframe-related query can optionally inquire about activities in the mainframe computing platform that occurred within minutes before the mainframe-related query is received. Within the method, the mainframe-related query is optionally provided in natural language. Within the method, the collection of tools are optionally provided in Model Context Protocol (MCP). Within the method, the trained engine is optionally a Large Language Model. Within the method, generating the second queries optionally comprises splitting the mainframe-related query into sub-queries regarding different aspects, thereby allowing feasibility in view of mass of information. The method can further comprise deleting the stored information.
[0010] Another exemplary embodiment of the disclosed subject matter is a system having a processor, the processor being adapted to perform the steps of: receiving a mainframe-related query; providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine; retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query; storing the information on a storage device associated with a computing platform other than the mainframe computing platform; activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools: retrieve part of the information from the storage device; parse the part of the information to obtain parsed information; and store the parsed information in a structure having a scheme; obtaining, by the trained engine, the scheme from each of the second trained engines; providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query; receiving, by the trained engine, second responses to the second queries, the second responses are based on the parsed information obtained by each of the second trained engines; and generating, by the trained engine, a first response to the mainframe-related query based on the second responses to the second queries. Within the system, the processor is optionally further adapted to perform: issuing at least one request by the trained engine to each of the second trained engines, the at least one request requesting at least one scheme of the structure created by each of the at least one tool from the collection of tools; and receiving the at least one scheme, wherein the second queries are based on the at least one scheme. Within the system, the trained engine and the second trained engines are optionally executed by one or more computing platforms other than the mainframe computing platform, thereby saving resources of the mainframe computing platform. Within the system, the information is optionally SMF information. Within the system, the SMF information optionally comprises data related to job accounting, Customer Information Control System (CICS), and DB2, wherein the plurality of second trained engines optionally comprises: a job accounting engine configured to process common address space work data; a CICS engine configured to process call elapsed and CPU times portion of the SMF; and a DB2 performance engine configured to process CICS transaction performance data. Within the system, the mainframe-related query is optionally provided in natural language and wherein the trained engine is a Large Language Model. Within the system, the collection of tools are optionally provided in MCP.
[0011] Yet another exemplary embodiment of the disclosed subject matter is a computer program product comprising a non-transitory computer readable storage medium retaining program instructions, which instructions when read by a processor, cause the processor to perform: receiving a mainframe-related query; providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine; retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query; storing the information on a storage device associated with a computing platform other than the mainframe computing platform; activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools: retrieve part of the information from the storage device; parse the part of the information to obtain parsed information; and store the parsed information in a structure having a scheme; obtaining, by the trained engine, the scheme from each of the second trained engines; providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query; receiving, by the trained engine, second responses to the second queries, the second responses are based on the parsed information obtained by each of the second trained engines; and generating, by the trained engine, a first response to the mainframe-related query based on the second responses to the second queries.THE BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
[0012] The present disclosed subject matter will be understood and appreciated more fully from the following detailed description taken in conjunction with the drawings in which corresponding or like numerals or characters indicate corresponding or like components. Unless indicated otherwise, the drawings provide exemplary embodiments or aspects of the disclosure and do not limit the scope of the disclosure. In the drawings:
[0013] FIG. 1 is a flowchart of steps in a method for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure;
[0014] FIG. 2 is a schematic block diagram of entities and communications therebetween in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.
[0015] FIG. 3 is a schematic block diagram of further entities and communications therebetween, in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure; and
[0016] FIG. 4 is a schematic block diagram of further entities and communications therebetween, in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.DETAILED DESCRIPTION
[0017] SMF is the central data collection and instrumentation mechanism in z / OS that records detailed system, workload, accounting, and security activity for performance analysis, auditing, and billing.
[0018] The SMF collects gigantic amounts of non-human-readable data, which is typically stored on a mainframe (MF) storage device, and can then be accessed and parsed by dedicated programs executed by the MF.
[0019] Therefore, one technical problem addressed by the present disclosure concerns the consumption of MF resources required for accessing and parsing data. Such resource consumption is inherently drawn from the finite pool of computational resources available to the MF for performing its primary operational tasks. As a result, the allocation of resources to data access and parsing activities directly diminishes the resources available for the MF's intended functions, thereby adversely affecting overall system productivity and efficiency. The high resource consumption may also lead customers to only store and use SMF data for audit purposes and for per-need inquiry, rather than using it on an ongoing basis for operational insights and troubleshooting.
[0020] Another technical problem addressed by the disclosure is the substantial processing time required to handle large volumes of data, which prevents immediate access to the information of interest, even in scenarios where only a relatively small subset of the data is actually needed. For example, when a performance degradation or other operational issue has occurred within a recent time window, such as the last fifteen minutes, a considerable amount of time may be required to process and analyze the SMF data in order to identify the root cause. Consequently, neither real-time nor near-real-time analysis is feasible, and any response may become available only after the issue has already become irrelevant, additional damage has occurred, or corrective action opportunities have been missed. Indeed, currently available tools are adapted to analyze and parse SMF historical data, such as a day old data, a week old data, a month old data or the like, rather than data related to the last few minutes which may be used for real-time instrumentation data troubleshooting or operational insights.
[0021] Moreover, if there is an actual problem which causes heavy load or slow response time of the mainframe, using the slowed down system to also analyze SMF data is impractical and would only impede the system further, leading customers to avoid using SMF data for real-time.
[0022] Yet another technical problem addressed by the disclosure relates to products that write SMF records but do not provide a program to parse and analyze these records, such that users need to investigate these records on their own, which makes it very hard to derive insights from the data.
[0023] Yet another technical problem addressed by the disclosure is that some SMF records, such as SMF records of type 110 subtype 1 used for CICS performance monitoring may be compressed using an MF-specific compression algorithm with no public decompression documentation or implementations. Thus, the compressed records can be decompressed only by a program that runs only on the MF. Therefore reading or parsing the records requires executing a heavy process on the mainframe first, which costs resources and inhibits independent analysis off the MF.
[0024] Another technical problem addressed by the disclosure is that regardless of which data is retrieved, where the data is stored and how it can be accessed, data queries or requests are restricted to predefined subjects and formats. Thus, currently available tools do not provide flexibility to interrogate the data on demand or in natural language, thereby making them unhelpful in troubleshooting scenarios where looking at the data from various angles based on the problem context is required. Addressing any inquiry beyond these predetermined queries requires additional programming, which is time-, knowhow- and resource-intensive, thereby preventing rapid response to evolving requirements, even when the changes are minor.
[0025] Some of the problems mentioned above are valid even if the SMF data is stored externally to the MF system, for example exported to another storage device.
[0026] One technical solution of the disclosure includes providing a natural language interface which a user can use to submit a query or request for information using free-form language, without requiring prior knowledge of the underlying data structures or tools. The user may be a human user, a software application, or any other requesting entity. The query may be transmitted to an Artificial Intelligence (AI) engine together with descriptions of a plurality of tools available for execution. The tools may be exposed via the MCP protocol and configured to be selectively invoked and operated by the AI engine in response to the query.
[0027] The descriptions of the tools may include information indicative of each tool's functionality, required inputs, expected outputs, execution constraints and dependencies, thereby enabling the AI engine to reason about tool selection and sequencing.
[0028] The tools may include, for example, a first tool configured to retrieve at least a portion of the SMF from the MF. The retrieved information may be stored on a computing platform that is external to the MF, such that subsequent processing is performed without consuming additional computational or storage resources of the MF. This allows offloading of data access and processing operations while preserving the integrity of the MF and data stored thereon.
[0029] In some embodiments, the first tool may retrieve only data segments determined by the AI engine to be relevant to the user's query, thereby reducing data retrieval and transfer volume and improving system efficiency. The retrieved data segments may be limited by SMF record type and subtype numbers, system name, date / time, subject / content / account, or the like.
[0030] The tools may further include one or more second tools configured to parse, normalize, or otherwise process the retrieved information and store the processed information in a predetermined format, such as within a database. One or more tools may implement a decompression algorithm that runs off the MF, and enable to decompress CICS records, such that they can be parsed and analyzed off the MF. Decompression may be implemented as a standalone tool or as a part of a parsing tool, which may decompress the records if required.
[0031] The structure of the database, including the schemas of one or more tables, may be dynamically determined by each relevant second tool based on the assigned task, the nature of the retrieved information, or the requirements of subsequent queries.
[0032] It is appreciated that getting the data off the MF, parsing, and loading it into a schema-based database, overcomes the LLM limitation of the size of data that can be handled at once, also referred to as the “context window”. While SMF data is in the order of magnitude of giga bytes, commercial LLM context windows are in the order of magnitude of mega bytes at most. Thus, SMF data cannot be simply provided to an LLM to be analyzed. Therefore, arranging the data in a database enables to request the LLM to generate a database query based on a schema to answer the user's prompt, rather than analyze large volumes of SMF, and thus query the SMF data in natural language.
[0033] In some embodiments, different parsing second tools may be selected based on the data type, source, or semantic characteristics of the retrieved information, and multiple database representations may be generated in parallel, to support different queries.
[0034] The second tools may also be configured to receive queries and to generate responses based on the tables generated by each second tool. In some embodiments, the same tool may both generate and query the tables, while in other embodiments separate tools may be used for table generation and for query execution.
[0035] The queries processed by the tools may be derived from, or generated as sub-queries based on the user's original query. The AI engine may generate the sub-queries by decomposing the user's query into components, determining data dependencies among the components, and assigning each component to one or more tools capable of fulfilling the corresponding task.
[0036] Accordingly, the AI engine may coordinate the operation of the various tools to retrieve, process, and organize information in accordance with the user's query, generate one or more sub-queries, receive corresponding responses, and aggregate or synthesize the responses into a coherent result that is returned to the user via the natural language interface.
[0037] The coordination may include determining an execution order for the tools, invoking tools sequentially or in parallel, monitoring tool execution status, handling intermediate results, and resolving dependencies between tool outputs and subsequent tool inputs.
[0038] In some embodiments, the AI engine may iteratively refine the sub-queries or re-invoke one or more tools based on intermediate results, detected inconsistencies, or insufficient confidence levels associated with the responses. The AI engine may also revert to the user with requirement for clarifications or refinement.
[0039] In optional embodiments, the AI engine may maintain a tool orchestration policy defining preferred tool combinations, execution sequences, or optimization criteria, such as latency, resource consumption, or data freshness. The policy may be predefined, dynamically updated based on historical executions, or learned using machine learning techniques.
[0040] One technical effect of the disclosure is the provision of responses to queries relating to an SMF of an MF computing system, via a natural language interface that is usable by a human user or by an automated process. The natural language interface enables unrestricted querying, such that queries are not confined to predefined subjects, time frames, query formats, fixed parameters, limited option sets, or the like.
[0041] Another technical effect of the disclosure is that the responses may be generated in real time or near real time. In addition to the obvious advantage of immediate response delivery, the reduced response latency enables timely insights into recent or ongoing events within the MF, thereby facilitating early detection of issues, anomalies or failures. For example, the query can inquire about activities in the mainframe computing platform that occurred within minutes before the mainframe-related query is received.
[0042] Yet another technical effect of the disclosure is that the resource consumption of the MF is minimized and is limited substantially to providing the SMF information. The storage, decompression, parsing, and analysis of the SMF information may be performed by one or more external computing platforms, thereby avoiding the use of unnecessary computational or storage resources of the MF.
[0043] Yet another technical effect of the disclosure is that the tools used for storage, parsing and analysis of the SMF data may be distributed across multiple computing environments, and the AI engine may orchestrate tool execution across the environments, while accounting for network latency, access permissions, and data locality. In such embodiments, partial results from different environments may be combined by the AI engine to generate the response.
[0044] Yet another technical effect of the disclosure is that one or more tools may be replaced, added, or updated without modifying the natural language interface or the AI engine logic, thereby enabling updating, scaling and extensibility of the system. The AI engine may automatically incorporate newly available tools based on their descriptions and capabilities.
[0045] Referring now to FIG. 1, showing a flowchart of steps in a method for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.
[0046] At step 104, an MF-related query may be received by an AI engine, optionally using or interfacing with a Large Language Model (LLM), which may be trained accordingly. The MF-related query may be in free text and no specific format is required, nor is the query limited to specific subject, timeframe, or data. The query may be received from a human user through a user-interface, from an automated machine or process, or the like.
[0047] Referring now also to FIG. 2, showing a schematic block diagram of entities and communications therebetween in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.
[0048] As above, the MF-related query, also referred to as prompt 204 may be received from a user or automated machine or process as detailed above.
[0049] At step 108, the mainframe-related query and a collection of tool descriptions 208 related to a collection of tools, also referred to as agents, may be provided to an AI engine for example a trained AI engine, optionally configured to orchestrate processing tasks using the collection of tools based on the received query.
[0050] The tool descriptions may be provided in a textual manner, in a binary manner, or the like. The descriptions may indicate the required input, output, parameters, or other information required for operating each of the tools.
[0051] The trained engine may be or may interface with an LLM 214 which is part of or accessed by a framework 212 for carrying out some embodiments of the disclosure.
[0052] It is appreciated that LLM 214 may also receive as input a system prompt instructing it how to obtain and parse the information using the described tools, whether and when to receive instructions or confirmation from a human user for the next steps, or the like.
[0053] At step 112, the engine may activate one of the tools, for example an MF databot 216 to retrieve information from the mainframe computing platform 218. The retrieved information may be a subset of information stored on mainframe computing platform 218 that is pertinent to the received mainframe-related query. LLM 214 may determine and instruct MF databot 216, based on the query, which and how much information is to be retrieved from the SMF. In some embodiments, the information may comprise information partial to the SMF, for example information related to a specific timeframe immediately preceding the time of the query, another time frame, specific tasks or resources, or the like. In some embodiments, the information may relate to specific SMF record types and subtypes, such as but not limited to record type 30 related to common address space work; record type 101 related to DB2 threads, call elapsed and CPU times, suspend times, buffer manager, locking, SQL DML statistics, or the like; record type 110 related to CICS transaction performance, or others. It is appreciated that retrieval of a fraction of the SMF data instead of the enormous volume of data usually accumulated therein, is beneficial in time and computing resources.
[0054] Thus, MF databot 216 may access a database of the MF, such as SMF DB 220, and optionally a log stream such as SMF logstream 224, to retrieve the required information.
[0055] At step 116, the retrieved information may be stored, for example by mainframe databot 216 or an associated agent, on a storage device 226 associated with a computing platform other than mainframe computing platform 218. In some embodiments, storing the information externally to the mainframe enables subsequent processing without directly accessing the mainframe computing platform, thereby avoiding unnecessary usage of the mainframe resources and increasing its efficiency. Storage device 226 may be or may comprise cache 228 for enabling fast access to the data.
[0056] Referring now also to FIG. 3, showing a schematic block diagram of further entities and communications therebetween, in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.
[0057] At step 120, the trained engine such as LLM 214 may activate a plurality 312 of second trained engines, with tasks determined upon the query. The second trained engines, also referred to as AI agents, may be adapted to activate further tools for which description has been provided as part of tool description 208. In some embodiments, one or more of the second trained engines may correspond to specific SMF record types. For example, one second trained engine may be SMF agent 1 (316) which may operate a tool adapted to handle data corresponding to records of type 30, another second trained engine may be SMF agent 2 (320) may operate a tool adapted to handle data corresponding to records of type 101, and yet another second trained engine may be SMF agent 3 (324) which may operate a tool adapted to handle data corresponding to records of type 110, or the like. Since a single LLM instance cannot handle a significant amount of data at once, separating the task to several LLM instances each handling a smaller problem or query, may generate responses of higher accuracy. Thus, the activation of separate agents, where each agent specializes in parsing and querying a specific set of SMF records, is beneficial in improving the overall quality of the responses. For example, an agent specializing in CICS records, in addition to tools for parsing and querying, can be provided with additional specific context, such as documents describing best practices for CICS performance analysis.
[0058] Each of the plurality of second trained engines such as 316, 320 or 324 may be adapted to retrieve, parse and store information using one or more tools from the collection of the tools whose descriptions were provided to the first engine.
[0059] Thus, at step 124, part of the information may be retrieved from the storage device other than the mainframe, such as cache 228.
[0060] At step 126, the SMF records may be decompressed if needed, for example if the records are compressed with MF z / OS Data Compression and Expansion Services (CSRCESRV). It is appreciated that the decompression engine may also be one of the provided tools.
[0061] At step 128, the part of the information may be parsed to obtain parsed information. The parsed information may be structured and may contain text, numbers, or the like. Parsing, by each agent, may include parsing binary format into raw binary records. In some embodiments, parsing may further comprise transmitting the records to multiple parsers, which may run in parallel, or even on different computing platforms, and parse the records according to the record type.
[0062] At step 132, the information may be stored in a structure having a scheme, such as query engine 328, comprising for example one or more database tables having schemes, i.e., descriptions of the structure in which the parsed information is stored. The schemes may be determined by the second trained engines, according to the tasks assigned to the second trained engines by the first engine.
[0063] Referring now also to FIG. 4, showing a schematic block diagram of further entities and communications therebetween, in a system for analyzing mainframe SMF records using natural language, in accordance with some exemplary embodiment of the disclosure.
[0064] At step 136, the trained engine may provide a set of second queries and receive a set of second responses.
[0065] Thus, in some embodiments, LLM 214 may issue 404 a request to query engine 328 to receive the scheme used for storing each part of the information. Query engine 328 may transmit a corresponding query to each of the agents that stored the relevant parts of the information, such as SMF agents 316, 320 or 324.
[0066] A response, comprising the relevant scheme may then be returned 408 by each agent to the trained engine. The relevant scheme may be provided in a human readable format, comprising for example column name and column type for each table, the relations between the columns and between the tables, or the like.
[0067] The trained engine such as LLM 214 may then issue 412 a set of second queries to retrieve the data according to the scheme provided by the corresponding agents, such as SMF agents 316, 320 or 324.
[0068] The second queries may be based on the mainframe-related query, such as user prompt 204, and on the schemes as created and returned by the agents.
[0069] It is appreciated that generating the second queries may comprise splitting the mainframe-related query into sub-queries regarding different aspects, thereby allowing processing feasibility in view of mass of information retrieved from the SMF. The data may be returned in Json format
[0070] At step 140, the trained engine such as LLM 214, may receive 416 the second responses from the agents, comprising the relevant data.
[0071] It is appreciated that in some embodiments, for example when the user query is trivial, the trained engine such as LLM 214 may issue a single query to each agent, to retrieve the scheme and the data together, rather than separate queries for the scheme and the for the data.
[0072] At step 144, the trained engine, having received the second responses to the second queries from the agents, such as SMF agents 316, 320 or 324, may analyze the information and may generate a response to the mainframe-related query, such as user prompt 204, based on the second responses. The response may be output to a user, transmitted to another system, stored for further processing, or the like.
[0073] Once the response is generated, the information stored in cache 228 by mainframe databot 216, and optionally any additional stored information may be deleted.
[0074] It is appreciated that framework 212 including LLM 214 may be executed by a computing platform which may be implemented as a server, a cloud server, or any other computing platform. It is appreciated that the computing platform may be positioned anywhere and can also serve additional purposes.
[0075] The computing platform may comprise one or more processors located on the same computing platform or not, which may be one or more Central Processing Units (CPU), microprocessors, electronic circuits, Integrated Circuits (IC) or the like. The processor may be configured to provide the required functionality, for example by loading to memory and executing instructions associated with FIG. 1, and implementing the entities in FIGS. 2-4 above.
[0076] The computing platform may comprise a communication device communicating with other devices or other computing platforms, for example communicating with any AI client, MF system, or the like. The communication device may be adapted to interface with any communication channel such as Local Area Network (LAN), Wide Area Network (WAN), cellular network or the like, and use any relevant communication protocol.
[0077] The computing platform may comprise a storage device, such as a hard disk drive, a Flash disk, a Random Access Memory (RAM), a memory chip, or the like. In some exemplary examples, the storage device may retain program code operative to cause the processor to perform instructions associated with FIG. 1, and to implement the entities in FIGS. 2-4. The program code may comprise one or more executable units, such as functions, libraries, standalone programs or the like, adapted to execute instructions as detailed above.
[0078] The present invention may be a system, a method, and / or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
[0079] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0080] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0081] Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
[0082] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0083] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function / act specified in the flowchart and / or block diagram block or blocks.
[0084] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0085] The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustration, and combinations of blocks in the block diagrams and / or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
Claims
1. A computer-implemented method comprising:receiving a mainframe-related query;providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine;retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query;storing the information on a storage device associated with a computing platform other than the mainframe computing platform;activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools:retrieve part of the information from the storage device;parse the part of the information to obtain parsed information; andstore the parsed information in a structure having a scheme;obtaining, by the trained engine, the scheme from each of the plurality of second trained engines;providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the plurality of second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query;receiving, by the trained engine, second responses to the set of second queries, the second responses are based on the parsed information obtained by each of the plurality of second trained engines; andgenerating, by the trained engine, a first response to the mainframe-related query based on the second responses to the set of second queries,wherein the information is System Management Facility (SMF) information, comprising data related to job accounting, Customer Information Control System (CICS), and Database 2 (DB2) andwherein the plurality of second trained engines comprises:a job accounting engine configured to process common ad ess space work data;a Customer Information Control System (CICS) engine configured to process call elapsed and Central Processing Unit (CPU) times portion of the SMF: anda Database 2 (DB2) performance engine configured to process Customer Information Control System (CICS) transaction performance data.
2. The method of claim 1, further comprising:issuing at least one request by the trained engine to each of the plurality of second trained engines, the at least one request requesting at least one scheme of the structure created by each of the at least one tool from the collection of tools; andreceiving the at least one scheme,wherein the set of second queries are based on the at least one scheme.
3. The method of claim 1, wherein the trained engine and the plurality of second trained engines are executed by one or more computing platforms other than the mainframe computing platform, thereby saving resources of the mainframe computing platform.
4. The method of claim 1, wherein the structure is a database and the second query is a Structured Query Language (SQL) query.
5. The method of claim 1, wherein the mainframe-related query can inquire about activities in the mainframe computing platform that occurred within minutes before the mainframe-related query is received.
6. The method of claim 1, wherein the mainframe-related query is provided in natural language.
7. The method of claim 1, wherein the collection of tools are provided in Model Context Protocol (MCP).
8. The method of claim 1, wherein the trained engine is a Large Language Model.
9. The method of claim 1, wherein generating the set of second queries comprises splitting the mainframe-related query into sub-queries regarding different aspects, thereby allowing feasibility in view of mass of information.
10. The method of claim 1, further comprising deleting the stored information.
11. A system having a processor, the processor being adapted to perform the steps of:receiving a mainframe-related query;providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine;retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query;storing the information on a storage device associated with a computing platform other than the mainframe computing platform;activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools:retrieve part of the information from the storage device;parse the part of the information to obtain parsed information; andstore the parsed information in a structure having a scheme;obtaining, by the trained engine, the scheme from each of the plurality of second trained engines;providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the plurality of second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query;receiving, by the trained engine, second responses to the set of second queries, the second responses are based on the parsed information obtained by each of the plurality of second trained engines; andgenerating, by the trained engine, a first response to the mainframe-related query based on the second responses to the set of second queries,wherein the information is System Management Facility (SMF) information, comprising data related to job accounting, Customer Information Control System (CICS), and Database 2 (DB2) andwherein the plurality of second trained engines comprises:a job accounting engine configured to process common address space work data;a Customer Information Control System (CICS) engine configured to process call elapsed and Central Processing Unit (CPU) times portion of the SMF: anda Database 2 (DB2) performance engine configured to process Customer Information Control System (CICS) transaction performance data.
12. The system of claim 11, wherein the processor is further adapted to perform:issuing at least one request by the trained engine to each of the plurality of second trained engines, the at least one request requesting at least one scheme of the structure created by each of the at least one tool from the collection of tools; andreceiving the at least one scheme,wherein the set of second queries are based on the at least one scheme.
13. The system of claim 11, wherein the trained engine and the plurality of second trained engines are executed by one or more computing platforms other than the mainframe computing platform, thereby saving resources of the mainframe computing platform.
14. The system of claim 11, wherein the mainframe-related query is provided in natural language and wherein the trained engine is a Large Language Model.
15. The system of claim 11, wherein the collection of tools are provided in Model Context Protocol (MCP).
16. A computer program product comprising a non-transitory computer readable medium retaining program instructions, which instructions when read by a processor, cause the processor to perform:receiving a mainframe-related query;providing the mainframe-related query and a collection of tool descriptions related to a collection of tools, to a trained engine;retrieving by a tool activated by the trained engine, information from a mainframe computing platform, the information is a subset of stored information in the mainframe computing platform that is pertinent to the mainframe-related query;storing the information on a storage device associated with a computing platform other than the mainframe computing platform;activating, by the trained engine, a plurality of second trained engines, each of the plurality of second trained engines is adapted to perform, using at least one tool from the collection of tools:retrieve part of the information from the storage device;parse the part of the information to obtain parsed information; andstore the parsed information in a structure having a scheme;obtaining, by the trained engine, the scheme from each of the plurality of second trained engines;providing, by the trained engine, a set of second queries, each second query of the set of second queries is provided to a specific second trained engine from the plurality of second trained engines, the each second query is based on the scheme received from the each second trained engine and on the mainframe-related query;receiving, by the trained engine, second responses to the set of second queries, the second responses are based on the parsed information obtained by each of the plurality of second trained engines; andgenerating, by the trained engine, a first response to the mainframe-related query based on the second responses to the set of second queries,wherein the information is System Management Facility (SMF) information, comprising data related to job accounting Customer Information Control System (CICS), and Database 2 (DB2) andwherein the plurality of second trained engines comprises:a job accounting engine configured to process common space work data;a Customer Information Control System (CICS) engine configured to process call elapsed and Central Processing Unit (CPU) times portion of the SMF: anda Database 2 (DB2) performance engine configured to process Customer Information Control System (CICS) transaction performance data.
Citation Information
Patent Citations
Multi-modal processing method and device of large language model based on tool enhancement
CN118364061A
Request response method and system based on model context protocol, and related components
CN121283998A
Question and answer retrieval method and device based on multiple agents
CN121722864A
Multi-tool calling task planning method and system based on large language model
CN121724148A
Next generation Artificial intelligence agents
US20250225412A1
