Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1798139
  • 博文数量: 335
  • 博客积分: 4690
  • 博客等级: 上校
  • 技术积分: 4341
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-08 21:38
个人简介

无聊之人--除了技术,还是技术,你懂得

文章分类

全部博文(335)

文章存档

2016年(29)

2015年(18)

2014年(7)

2013年(86)

2012年(90)

2011年(105)

分类: 系统运维

2013-06-23 10:53:31


点击(此处)折叠或打开

  1. Below examples explains how various data types are internally stored in memory

  2. PIC S9999 DISPLAY
  3. Value : + 1234
  4. Internal representation: F1 F2 F3 C4

  5. Value : - 1234
  6. Internal representation: F1 F2 F3 D4

  7. Value : 1234
  8. Internal representation: F1 F2 F3 C4

  9. PIC 9999 DISPLAY
  10. Value : 1234
  11. Internal representation: F1 F2 F3 F4


  12. PIC S9999 DISPLAY SIGN LEADING
  13. Value : + 1234
  14. Internal representation: C1 F2 F3 F4

  15. Value : - 1234
  16. Internal representation: D1 F2 F3 F4

  17. PIC S9999 DISPLAY SIGN LEADING SEPARATE
  18. Value : + 1234
  19. Internal representation: 4E F1 F2 F3 F4

  20. Value : - 1234
  21. Internal representation: 60 F1 F2 F3 F4

  22. PIC S9999 DISPLAY SIGN TRAILING SEPARATE
  23. Value : + 1234
  24. Internal representation: F1 F2 F3 F4 4E

  25. Value : - 1234
  26. Internal representation: F1 F2 F3 F4 60


  27. PIC S9999 BINARY /PIC S9999 COMP/PIC S9999 COMP-4
  28. Value : + 1234
  29. Internal representation: 04 D2

  30. Value : - 1234
  31. Internal representation: FB 2E

  32. PIC S9999 COMP-5
  33. Value : + 123451
  34. Internal representation: 30 39

  35. Value : - 123451
  36. Internal representation: CF C7


  37. PIC 9999 COMP-5
  38. Value : 600001
  39. Internal representation: EA 60

  40. The example demonstrates that COMP-5 data items can contain values of magnitude up to the capacity of the native binary representation (2, 4, or 8 bytes), rather than being limited to the value implied by the number of 9s in the PICTURE clause.


  41. PIC 9999 BINARY/PIC 9999 COMP/PIC 9999 COMP-4
  42. Value : 1234
  43. Internal representation: 04 D2

  44. PIC S9999 PACKED-DECIMAL/PIC S9999 COMP-3
  45. Value : + 1234
  46. Internal representation: 01 23 4C

  47. Value : - 1234
  48. Internal representation: 01 23 4D

  49. PIC 9999 PACKED-DECIMAL/PIC 9999 COMP-3
  50. Value : + 1234
  51. Internal representation: 01 23 4F

  52. Value : - 1234
  53. Internal representation: 01 23 4F

  54. COMP-1
  55. Value : + 1234
  56. Internal representation: 43 4D 20 00

  57. Value : - 1234
  58. Internal representation: C3 4D 20 00

  59. COMP-2
  60. Value : + 1234
  61. Internal representation: 43 4D 20 00 00 00 00 00

  62. Value : - 1234
  63. Internal representation:C3 4D 20 00 00 00 00 00
ref:
http://mainframe-tips-and-tricks.blogspot.com/2011/12/cobol-internal-representation-of.html
阅读(2108) | 评论(0) | 转发(0) |
0

上一篇:DSG CF 之cache 漫谈2

下一篇:USAGE OF SORT

给主人留下些什么吧!~~