{"title":"Using COBOL defensive traps","authors":"Eric Garrigue Vesely","doi":"10.1002/(SICI)1096-908X(199709/10)9:5%3C329::AID-SMR156%3E3.0.CO;2-Z","DOIUrl":null,"url":null,"abstract":"This paper focuses on inserting defensive traps in COBOL programs during maintenance in order to improve the quality of the software. The paper defines ‘defensive trap’ and describes two types, active and passive. One of the major opportunities present during maintenance is to fix omissions of defensive traps by inserting them into the software. The paper describes nine situations, involving arithmetic verbs, CALL, STRING, UNSTRING, EVALUATE, IF and ELSE, GO TO DEPENDING, SEARCH, and input and output verbs. The other major opportunity present during maintenance is to correct for the weak use or misuse of defensive traps. The paper describes five situations, involving index and subscript checks, IF NEGATIVE, overlapping operands, PERFORM and EXIT, and qualification. The paper includes some examples from experience with inserting and strengthening defensive traps. 1997 John Wiley & Sons, Ltd.","PeriodicalId":383619,"journal":{"name":"J. Softw. Maintenance Res. Pract.","volume":"2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1997-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Maintenance Res. Pract.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/(SICI)1096-908X(199709/10)9:5%3C329::AID-SMR156%3E3.0.CO;2-Z","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This paper focuses on inserting defensive traps in COBOL programs during maintenance in order to improve the quality of the software. The paper defines ‘defensive trap’ and describes two types, active and passive. One of the major opportunities present during maintenance is to fix omissions of defensive traps by inserting them into the software. The paper describes nine situations, involving arithmetic verbs, CALL, STRING, UNSTRING, EVALUATE, IF and ELSE, GO TO DEPENDING, SEARCH, and input and output verbs. The other major opportunity present during maintenance is to correct for the weak use or misuse of defensive traps. The paper describes five situations, involving index and subscript checks, IF NEGATIVE, overlapping operands, PERFORM and EXIT, and qualification. The paper includes some examples from experience with inserting and strengthening defensive traps. 1997 John Wiley & Sons, Ltd.
本文主要研究在维护过程中在COBOL程序中插入防御陷阱,以提高软件质量。本文对“防御性陷阱”进行了界定,并将其分为主动陷阱和被动陷阱两类。在维护期间存在的主要机会之一是通过将防御性陷阱插入软件来修复它们的遗漏。本文描述了九种情况,包括算术动词,CALL, STRING, UNSTRING, EVALUATE, IF and ELSE, GO TO depends, SEARCH,以及输入和输出动词。维护期间存在的另一个主要机会是纠正防御性陷阱的薄弱使用或误用。本文描述了五种情况,包括索引和下标检查、IF NEGATIVE、重叠操作数、PERFORM和EXIT以及限定。本文还介绍了一些插入和加强防御圈闭的经验实例。1997 John Wiley & Sons, Ltd