资源描述:
《毕业论文外文翻译-使用copy,call和其他语句来提高编程效率》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、使用COPY,CALL和其他语句来提高编程效率Ⅰ.NancySternⅡ.RobertA.SternⅢ.JamesP.LeyⅠ.霍夫斯特拉大学Ⅱ.拿骚社区学院Ⅲ.威斯康星大学斯托特关键词:COPY,CALL,STRING,UNSTRING,OVERFLOW,POINTER,FD,OF,IN,PIC,IDENTIFICATIONDIVISION,PROGRAM-ID,DATADIVISION,REPLACING,BY,USING,PROCEDUREDIVISION,LINKAGESECTION,W
2、ORKING-STORAGESECTION,EXITPROGRAM,COBOL,STOPRUN,CALLING,DISPLAY,CONTENT,DELIMITED,VALUE,ACCEPT,ON,WITH,MOVE,SUBTRACT,INTO,ALL,END-UNSTRING.参考文献:10thEDITION《COBOLFORTHE21STCENTURY》Ⅰ.NancySternHofstraUniversityⅡ.RobertA.SternNassauCommunityCollegeⅢ.Jam
3、esP.LeyUniversityofWisconsin-StoutCopyright©2003byJohnWiley&Sons,Inc.50ImprovingProgramProductivityUsingTheCOPY,CALL,andOtherStatementsOBJECTIVESTofamiliarizeyouwith1.TheCOPYstatementforcopyingpartsofaprogramthatarestoredinalibrary.2.TheCALLstatement
4、forexecutingcalledprogramsassubroutines.3.TextmanipulationwiththeSTRINGandUNSTRINGstatements.CONTENTSCOPYSTATEMENTIntroductionEntriesthatCanBeCopiedAnExampleTheFullFormatfortheCOPYStatementCALLSTATEMENTWhyUseaCALLStatement?FormatoftheCALLStatementCal
5、ledProgramRequirementsCallingProgramRequirementsExamplesTEXTMANIPULATIONWITHSTRINGANDUNSTRINGSTATEMENTSTheSTRINGStatementTheBasicFormatOVERFLOWOptionPOINTEROptionGeneralRulesforUsingtheSTRINGTheUNSTRINGStatementTheBasicFormatGeneralRulesforUsingtheUN
6、STRINGEND-OF-CHAPTERAIDS50ChapterSummaryKeyTermsCOPYSTATEMENTINTRODUCTIONACOPYstatementisusedtobringintoaprogramaseriesofprewrittenCOBOLentriesthathavebeenstoredinalibrary.Copyingentriesfromalibrary,ratherthancodingthem,hasthefollowingbenefits:(1)itc
7、ouldsaveaprogrammeraconsiderableamountofcodinganddebuggingtime;(2)itpromotesprogramstandardizationsinceallprogramsthatcopyentriesfromalibrarywillbeusingcommondata-namesand/orprocedures;(3)itreducesthetimeittakestomakemodificationsandreducesduplicatio
8、nofeffort;ifachangeneedstobemadetoadataentry,itcanbemadejustoneinthelibrarywithouttheneedtoalterindividualprograms;and(4)libraryentriesareextensivelyannotatedsothattheyaremeaningfultoallusers;thisannotationresultsinbetter-documentedprogramsandsystems