System and method for automatic impact variable analysis and field expansion in mainframe systems
AssigneeTata Consultancy Services Limited
InventorTamildurai Mehalingam
Life of this patent
Estimating the term…
Abstract
A system and method for field analysis, in an organization is described herein. According to the present invention, the system parses the software code to prepare an abstract syntax tree, extract attributes and relational report, load the report in a common repository, perform impact analysis on the said common repository based on user provided seed, and prepare the list of impacted variables. Further, if required the impacted fields are expanded based on the target size information provided.
Claims14
A method for expanding a size of a field associated with a plurality of variables present in a source code of at least one software application, the method comprising processor implemented steps of:
- receiving said source code in at least one source language;
- parsing said source code to generate an abstract syntax tree (AST), wherein the AST comprises relation amongst the plurality of variables, and wherein the relation is stored in a repository;
- identifying a first set of seed variables from the plurality of variables, wherein the first set of seed variables is identified based on,
- a) matching of a pattern pertaining to the field received from a user with patterns of fields associated with the plurality of variables, or
- b) one or more files, one or more database fields, or one or more screen fields;
- performing multi-level impact analysis on the first set of seed variables in order to identify a second set of seed variables, wherein performing the multi-level impact analysis further comprises excluding one or more seed variables from the second set of seed variables, wherein the one or more seed variables indicative of non-impacted variables, and wherein the exclusion of the non-impacted variables facilitates in reduction of the false positives;
- generating an analysis report comprising the first set of seed variables and the second set of seed variables, wherein the analysis report facilitates to further exclude at least one seed variable from the first set of seed variables or the second set of seed variables in order to derive a set of impacted variables, thereby further facilitating to reduce the false positives;
- and
- expanding the size of a field associated with each seed variable of the set of impacted variables.
A system for expanding a size of a field associated with a plurality of variables present in a source code of at least one software application, the system comprising:
- a processor;
- and
- a memory, coupled to the processor, to store instructions that, when executed by the processor, cause the processor to:
- receive said source code in at least one source language;
- parse said source code to generate an abstract syntax tree (AST), wherein the AST comprises relation amongst the plurality of variables, and wherein the relation is stored in a repository;
- identify a first set of seed variables from the plurality of variables, wherein the first set of seed variables is identified based on,
- a) matching of a pattern pertaining to the field received from a user with patterns of fields associated with the plurality of variables, or
- b) one or more files, one or more database fields, or one or more screen fields;
- perform a multi-level impact analysis on the first set of seed variables in order to identify a second set of seed variables, and wherein the multi-level impact analysis is further comprises exclusion of one or more seed variables from the second set of seed variables, and wherein the one or more seed variables indicative of non-impacted variables and wherein the exclusion of the non-impacted variables facilitates in reduction of the false positives;
- generate an analysis report comprising the first set of seed variables and the second set of seed variables, wherein the analysis report facilitates to further exclude at least one seed variable from the first set of seed variables or the second set of seed variables in order to derive a set of impacted variables, thereby further facilitating to reduce the false positives;
- and
- expand the size of a field associated with each seed variable of the set of impacted variables.
Dependencies are inferred from the claim text.