AS06课程资料-HT.docVIP

  1. 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
  2. 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
  3. 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
AS06课程资料-HT

Unit 2. Coding Specifications for RPG IV Symbolic Names and Reserved Words The valid character set for the RPG IV language consists of: The letters A B C D E F G H I J K L M N O P Q R S T U V W X Y Z RPG IV accepts lowercase letters in symbolic names but translates them to uppercase during compilation The numbers 0 1 2 3 4 5 6 7 8 9 The characters + - * , . / $ # : @ _ = ( ) % The blank character Note: The $, #, and @ may appear as different symbols on some codepages. For more information, see the iSeries Information Center globalization topic. Symbolic Names A symbolic name is a name that uniquely identifies a specific entity in a program or procedure. In the RPG IV language, symbolic names are used for the following: Arrays Conditional compile names Data structure Exception output records Fields Key field lists Labels Named constants Parameter lists Prototype names Record names Subroutines Tables The following rules apply to all symbolic names except for deviations noted in the description of each symbolic name: The first character of the name must be alphabetic. This includes the characters $, #, and @. The remaining characters must be alphabetic or numeric. This includes the underscore (_). The name must be left-adjusted in the entry on the specification form except in fields which allow the name to float (definition specification, keyword fields, and the extended factor 2 field). A symbolic name cannot be an RPG IV reserved word. A symbolic name can be from 1 to 4096 characters. The practical limits are determined by the size of the entry used for defining the name. A name that is up to 15 characters can be specified in the Name entry of the definition or procedure specification. For names longer than 15 characters, use a continuation specification. For more information, see About Specifications. A symbolic name must be unique within the procedure in which it is defined. Array Names The following additional rule applies to

文档评论(0)

wt60063 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档