资源描述:
《RPGIV程序员面试题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、RPGIV程序员面试题 1. functionkeyCA与CF的区别;CFreturnscreenandindicator,CAindicatoronlyIfyouuseCAnninsteadofCFnn,thiswillhappenbecauseofthewaytheI/ObufferisvaliditycheckedbytheRPGruntime.WhentheuserusesaCFkey/ENTER/etc.thecurrentdisplayvaluesaremovedtothisWBandverified.Don'tuseCAkeysorDon'tusefunctio
2、nssuchasVALUES,RANGE,CHECK(VN),etc. 2. dataQ与dataarea的区别;1).两种语言交流比dataarea,messagequeue有效2)速度快,特别是多个用户,比批处理快3)多任务,先进先出,后进先出等,键方式,多种形式4)可以发用户名,任务名5)有timeout,过期不处理 3. chain与reade的区别;Readeusefilepathandcanusenextorderrecord,chainusedirectlyWhat'sthedifferencebetweenCHAINandSETLL?Isthereaperfor
3、manceadvantage?(1)TheCHAINoperationappliesarecordlocktofilesthatareopenorupdate.TheSETLLoperationdoesnotapplythelock.(2)TheCHAINoperationcopiestherecord'sdatatotheinputbufferfortheprogram.TheSETLLoperationdoesnot.TheCHAINoperationperformsarandomGEToperationtothedatabasefile.Iftheoperationiss
4、uccessful,thedataintherecordiscopiedtotheinputbuffer.TheSETLLoperationperformsaquasiREADLESSTHANOREQUALoperation. isnotcopiedtotheinputbuffer,noristherearecordlockappliedtotheaccessedrecord.Hence,SETLLisprobablytheoperationcodetousefortestingtheexistenceofarecord. 4.callb与callp的区别CALLBisabou
5、ndcallformoduleandserviceprogrammoduleCALLPisforproceduresWhenCALLPisusedmustbeacodeprocedureprototypeintheD-Spec.ThemaindifferencebetweenCALLPandusingtheprocedureinanexpressionisthelackofareturnvalue. Ifaproceduredoesnotreturnavalue,CALLP(orCALLB-callbound)mustbeused. Ifaproceduredoesreturn
6、avalue,itwillbeignoredusingtheCALLPoperation. 5. 一个RPG程序中打开文件的最大数是多少?(RPG和RPGLE)nolimited6. RPG程序中一个字符型变量的长度是多少?655357. 数字型数组的求和操作符是什么?XFOOT8. 使用RPG程序,C表中非要写代码吗?No9. reset和CLEAR的用法和区别?REsettoinzsr,clearlastvalue10. *cat,*tcat,*bcat区别?*CAT(concatenation)'ABC'*CAT'DEF' becomes'ABCDEF'*BCAT(con
7、catenationwithblankinsertion) 'ABC'*BCAT‘DEF‘becomes'ABCDEF'The*TCAToperatortruncatesalltrailingblanksinthefirstcharacterstring,thenthetwocharacterstringsareconcatenated.Allleadingblanksonthesecondoperandarenottruncated'ABC'*TCAT'DEF'becomes'ABCDEF