- 1 Getting started
- 2 Compile
- 3 Customize
- 4 Optimize
- 5 Debug
- 6 Non-standard extensions
- 7 System Routines
- 附录 A
- 附录 B
- 附录 E
- 附录 I
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
6.7 CONTENT-OF
FUNCTION CONTENT-OF
returns an alphanumeric field given a pointer and optional length:
Data from pointer is returned as a COBOL field either by scanning for a NUL byte or using the optional length. Reference modification of result allowed.
identification division. program-id. contents. data division. working-storage section. 01 ptr usage pointer. 01 str pic x(4) value z"abc". *> Testing CONTENT-OF procedure division. set ptr to address of str display content-of(ptr) display content-of(ptr, 2) display content-of(ptr)(2:2) goback. end program hosted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论