...
首页> 外文期刊>iSeries news >How to Write Service Programs
【24h】

How to Write Service Programs

机译:如何编写服务程序

获取原文
获取原文并翻译 | 示例
           

摘要

Ibm introduced service programs to the AS/400 as part of the Integrated Language Environment (ILE), yet many System I shops make little use of service programs. It's time to go back to the basics and explain what a service program is and how to design and write them. Although the focus here is on RPG, the principles are common to all ILE languages.rnA service program is a System I object with an object type of ~*SRVPGM. In some respects, a service program is similar to a program because both contain executable code, can be written in any ILE language, and can accept parameters. In other respects, a service program is fundamentally different from a program. A service program may contain multiple procedures that can be called by other ILE programs or service programs but not from the command line. Whereas programs can be compiled in one step, service programs require two-step compilation. Calls to service program procedures are bound at compilation. Bound procedure calls are much faster than dynamic program calls. Each procedure can return a single value as well as update parameters.
机译:IBM作为集成语言环境(ILE)的一部分向AS / 400引入了服务程序,但是许多System I商店很少使用服务程序。现在该回到基础知识,解释什么是服务程序以及如何设计和编写它们。尽管这里的重点是RPG,但是这些原则对于所有ILE语言都是通用的。服务程序是System I对象,对象类型为〜* SRVPGM。在某些方面,服务程序类似于程序,因为它们都包含可执行代码,可以用任何ILE语言编写,并且可以接受参数。在其他方面,服务程序与程序根本不同。服务程序可能包含多个过程,这些过程可以由其他ILE程序或服务程序调用,但不能从命令行调用。程序可以一步编译,而服务程序则需要两步编译。对服务程序过程的调用必须在编译时绑定。绑定过程调用比动态程序调用快得多。每个过程都可以返回一个值以及更新参数。

著录项

  • 来源
    《iSeries news》 |2007年第337期|32-3332-3432-3532-3632-3732-3832-39|共7页
  • 作者

    Julian Monypenny;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号