# US 10,310,961 B1 · Cognitive dynamic script language builder

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,310,961 B1
- Document ID: US10310961B1
- Status: Granted
- Kind: B1
- Application number: 15/825,220
- Filed: 2017-11-29
- Published: 2019-05-30
- Granted: 2019-06-04
- Earliest claimed: 2017-11-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ralph A. Rabasco; Christopher B. Van Wagner
- Web page: https://patentgrep.com/patent/US10310961B1

## CPC

- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 8/31: {Programming languages or programming paradigms}
- G06F 11/3672: {Test management}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 16/23: Updating
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An embodiment of the invention may include a method, computer program product and computer system for updating a script of scripting language. The embodiment may include a computing device that receives an error message from the script operating in a run-time environment. The embodiment may include a computing device that determines a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script. The embodiment may include a computing device that determines a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code. The embodiment may include a computing device that creates a new script based on the replacement segment of code. The embodiment may include a computing device that operates the new script in the run-time environment.

## Claims

### Claim 1

A computer-implemented method for dynamically updating a script, the method comprising:
receiving an error message from the script operating in a run-time environment;
determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script;
determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code;
creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises:
updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of:
a skeleton database, a moniker database, and a symbol database:
inserting one or more skeletons from the skeleton database into a moniker from the moniker database: and
inserting one or more variables from the variable database into the one or more skeletons to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and
executing the new script in the run-time environment.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the cause of the error comprises analyzing the error message with an error model, and wherein the error model is a supervised learning algorithm.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the solution to the error message comprises analyzing the erroneous segment of code with a solution model, and wherein the solution model is a supervised learning algorithm.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the solution to the error message comprises iteratively trying a set of rules to replace the erroneous segment of code.

### Claim 5 (depends on 4)

The method of claim 4, wherein the set of rules comprises a naming convention.

### Claim 6 (depends on 1)

The method of claim 1, wherein a coding language of the script is Job Control Language.

### Claim 7

A computer program product for dynamically updating a script, the computer program product comprising
one or more computer-readable storage devices and program instructions stored on at least one of the one or more computer-readable storage devices, the program instructions comprising:
receiving an error message from the script operating in a run-time environment;
determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script;
determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code;
creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises:
updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of: a skeleton
database, a moniker database, and a symbol database:
inserting one or more skeletons from the skeleton database into a moniker from the moniker database: and
inserting one or more variables from the variable database into the one or more skeletons
to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and
executing the new script in the run-time environment.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein determining the cause of the error comprises analyzing the error message with an error model, and wherein the error model is a supervised learning algorithm.

### Claim 9 (depends on 7)

The computer program product of claim 7, wherein determining the solution to the error message comprises analyzing the erroneous segment of code with a solution model, and wherein the solution model is a supervised learning algorithm.

### Claim 10 (depends on 7)

The computer program product of claim 7, wherein determining the solution to the error message comprises iteratively trying a set of rules to replace the erroneous segment of code.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the set of rules comprises a naming convention.

### Claim 12 (depends on 7)

The computer program product of claim 7, wherein a coding language of the script is Job Control Language.

### Claim 13

A computer system for dynamically updating a script, the computer system comprising
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and
program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the program instructions comprising:
receiving an error message from the script operating in a run-time environment;
determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script;
determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code;
creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises:
updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of: a skeleton
database, a moniker database, and a symbol database;
inserting one or more skeletons from the skeleton database into a moniker from the moniker database; and
inserting one or more variables from the variable database into the one or more skeletons
to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and
executing the new script in the run-time environment.

### Claim 14 (depends on 13)

The system of claim 13, wherein determining the cause of the error comprises analyzing the error message with an error model, and wherein the error model is a supervised learning algorithm.

### Claim 15 (depends on 13)

The system of claim 13, wherein determining the solution to the error message comprises analyzing the erroneous segment of code with a solution model, and wherein the solution model is a supervised learning algorithm.

### Claim 16 (depends on 13)

The system of claim 13, wherein determining the solution to the error message comprises iteratively trying a set of rules to replace the erroneous segment of code.

### Claim 17 (depends on 16)

The system of claim 16, wherein the set of rules comprises a naming convention.
