Using COBOL defensive traps

Eric Garrigue Vesely
{"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防御陷阱
本文主要研究在维护过程中在COBOL程序中插入防御陷阱,以提高软件质量。本文对“防御性陷阱”进行了界定,并将其分为主动陷阱和被动陷阱两类。在维护期间存在的主要机会之一是通过将防御性陷阱插入软件来修复它们的遗漏。本文描述了九种情况,包括算术动词,CALL, STRING, UNSTRING, EVALUATE, IF and ELSE, GO TO depends, SEARCH,以及输入和输出动词。维护期间存在的另一个主要机会是纠正防御性陷阱的薄弱使用或误用。本文描述了五种情况,包括索引和下标检查、IF NEGATIVE、重叠操作数、PERFORM和EXIT以及限定。本文还介绍了一些插入和加强防御圈闭的经验实例。1997 John Wiley & Sons, Ltd
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信