home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / cobol / 678 < prev    next >
Encoding:
Text File  |  1993-01-21  |  7.8 KB  |  195 lines

  1. Newsgroups: alt.cobol
  2. Path: sparky!uunet!spool.mu.edu!sgiblab!pacbell.com!tandem!news
  3. From: Don Nelson <nelson_don@comm.tandem.com>
  4. Subject: Re: Hello, anybody out there ?
  5. Message-ID: <1993Jan21.193047.15115@tandem.com>
  6. X-Xxdate: Thu, 21 Jan 93 20:44:02 GMT
  7. Sender: news@tandem.com
  8. Nntp-Posting-Host: 130.252.172.59
  9. Organization: Tandem Computers
  10. X-Useragent: Nuntius v1.1.1d16
  11. References: <1993Jan20.232429.10611@shared.com>
  12. Date: Thu, 21 Jan 1993 19:30:47 GMT
  13. Lines: 180
  14.  
  15. In article <1993Jan20.232429.10611@shared.com> Mike Kenny,
  16. mikek@shared.com writes lots of stuff, excerpts follow:
  17.  
  18. >2. for ANSI - read ANSI/CODASYL or whoever controls the ANSI standard
  19. >   these days
  20.  
  21. The ANSI Standard is controlled by ANSI X3J4, the COBOL Committee.  The 
  22. worldwide standard is the ISO (International Standards Organization)
  23. Standard, 
  24. which is currently based on the ANSI Standard.  The next Standard (1996 
  25. perhaps) will be an ISO standard first, and then adopted as a US standard
  26. by 
  27. ANSI.  This work is being driven by ISO/IEC JTC1/SC22/WG4 COBOL (don't
  28. ask 
  29. what all those initials mean), with most of the work being done by X3J4. 
  30. I am 
  31. project editor of that standard.
  32.  
  33. >1. don't real COBOL programmers have access to news ? (or do the
  34. >   sysadms not tell 'em about it ?)
  35.  
  36. This is quite true.  I am moderator of the COBOL conference in Bix and we
  37. have 
  38. almost no COBOL activity.  I've been involved in COBOL development for 28 
  39. years, and in all those years I haven't seen much interest in outside
  40. stuff by 
  41. COBOL programmers.
  42.  
  43. >4. why isn't the serious COBOL community raising hell over not
  44. >   having comp.lang status ? (maybe that explains why this group
  45. >   is so quiet, all the interested people are looking for
  46. >   comp.lang.cobol)
  47.  
  48. I don't because I don't have the faintest idea of how Internet works, who
  49. owns 
  50. conferences, and so on.  Where does one raise hell?
  51.  
  52. >Lots of stuff about why aren't more people involved.
  53.  
  54. Very few manufacturers have access to Internet.  We didn't until last
  55. summer.  
  56. It is not supposed to be a commercial network.  Many that do have access
  57. can 
  58. only send and receive messages.
  59.  
  60. >1. pointers : ...
  61. >
  62. >   Anyways, my understanding of things is that ANSI has not defined
  63. >   the use of pointers in COBOL, so implementors are free to go their
  64. >   own way. But I believe the next standard is possibly going to
  65. >   address this void in the language. If so, which way are they going
  66. >   to go ? Probably the first, since I believe this is IBM's, which is
  67. >   fine except that it does not support the syntax 'with pointer'. I
  68. >   like this feature because every time the pointer is updated the area
  69. >   being described by the data declaration 'moves' as well. With the 
  70. >   firrst method it is necessary to keep track of changes to the pointer
  71. >   and execute 'set' statements prior to referencing the item.
  72. >
  73. Pointers will be in the next standard and they will not be like either 
  74. existing implementation (or the dozen or so other ways).  They are
  75. currently 
  76. being defined by the Object-Oriented COBOL task group and the definition
  77. is 
  78. not set at this point.
  79.  
  80. >
  81. >2. intrinsic functions :
  82. >
  83. >   This COBOL had many functions for string manipulation - concatenation,
  84. >   substring, right/left string, etc. Many of these are achievable thru
  85. >   the use of reference modification, string and unstring and many of
  86. >   them relate to a specific type of string termed 'display-2' (see
  87. >   below), but the cost of conversion, particularly when the semantics
  88. >   vary, can cause companies to consider switching to a more 'portable'
  89. >   language rather than 'upgrading' their COBOL (though how C acquired
  90. >   it's reputation for portability escapes me, I guess it must relate to
  91. >   the fact that if a feeature is missing in one environment it is
  92. missing
  93. >   in all environments).
  94.  
  95. I don't understand the cost of conversion issue.  You should not use 
  96. extensions of you want portable COBOL.  As you said, STRING, UNSTRING,
  97. and 
  98. reference modification do what you want.  Use the implementor-specific
  99. bells 
  100. and whistles and you pay in the long run.
  101.  
  102. >   Whether or not you agree with my priorities is not at issue here,
  103. >   the point is that if a body of code exists that makes use of some
  104. >   useful extensions then ANSI should make every effort to incorporate
  105. >   these extensions int other standard. Up to the point where they are
  106. >   going to break a larger body of code by doing so.  Since one of the
  107. >   strongest arguments in favor of COBOL is it's existing user base,
  108. >   shouldn't a better effort be made to protect that base ? Or does 'user
  109. >   base' translate into 'big blue user base' ?
  110.  
  111. We do adapt implementor extensions if they are reasonable.  Nobody has
  112. ever 
  113. mentioned the functions you talk about above.
  114.  
  115. >   The above limitations would be removed if the ability was provided
  116. >   for the user to define their own functions. Does anybody know whether
  117. >   this is going to happen ? as a part of the standard ?
  118.  
  119. User-defined functions will be part of the next Standard.  In addition,
  120. you 
  121. will have object-oriented stuff, which is even more powerful.
  122.  
  123. >3. DISPLAY-2 items :
  124. >
  125. >   This COBOL had the concept of DISPLAY-2 in addition to DISPLAY. The
  126. >   difference is semantical rather than syntactical. In the following
  127. >   example the first call statement passes 10 characters while the
  128. >   second only passes 4.
  129. >   01  str-1 pic x(10).
  130. >   01  str-2 pic x(10) display-2.
  131. >   ......
  132. >      move "test" to str-1 str-2
  133. >      call "string_routine" using str-1
  134. >      call "string_routine" using str-2
  135. >
  136. >   This data type is also supported in PL/1 and, I think, matches the
  137. >   Pascal concept of a string. I have found this data type to be mildly
  138. >   useful and am really only including it here to further belabor the
  139. >   point concerning protecting the investment in existing COBOL code.
  140.  
  141. There has been some talk about variable-size strings, but nobody has
  142. proposed 
  143. anything.  Whoever wrote this COBOL you talk about has yet to mention
  144. this to 
  145. us.
  146.  
  147. >4. mixed language environments : (lots of stuff)
  148.  
  149. The next standard will deal with this.  An ISO working group is currently 
  150. trying to make all of the languages work together.  I was convenor of it
  151. for a 
  152. while.
  153.  
  154. >5. bits :
  155.  
  156. There are plans to incorporate boolean (bit) definitions and so on.  To
  157. define 
  158. a boolean string that is a string of bits you use "01  a-bit-string PIC
  159. 1(n) 
  160. USAGE IS BIT.".  You can define boolean literals like B"0101010".  The 
  161. operations supported are B-EXOR, B-LESS, B-OR, B-AND, and B-NOT. 
  162. Relational 
  163. operators are the usual plus CONTAINS and IS CONTAINED IN.
  164. >
  165. >7. EXTERNAL data :
  166. >
  167. >   In a dynamic environment the compiler has no way of knowing ahead
  168. >   of time that it needs to allocate memory for EXTERNAL items, so it
  169. >   leaves it up to the run time to malloc() the memory. Unfortunately,
  170. >   this causes subtle differences in the treatment of these areas from
  171. >   what would have been the case had the compiler exported them for
  172. >   resolution by the linker. But on the other hand I have heard the
  173. >   argument that in a dynamic environment, where memory is short, it
  174. >   is desirable to be able to deallocate the memory in question when
  175. >   no active program references it. So which way is correct ? or should
  176. >   it be a compile time option ? ANSI don't say a great deal about this.
  177.  
  178. In standard COBOL, there is no dynamic allocation for external data items
  179. and 
  180. there should not be.  I assume you are talking about an awful o/s like
  181. UNIX.  
  182. Nearly everyone else has no problems with implementing external items. 
  183. In 
  184. object-oriented COBOL there will be dynamic allocation and deallocation.
  185.  
  186. Anyhow, lots of good points were brought up.  Actually, I hope this
  187. doesn't stimulate too much discussion or I'll have to spend too much time
  188. responding.
  189.  
  190. Don Nelson
  191. COBOL Development, Tandem Computers, Inc 
  192. ex-Chariman, CODASYL COBOL Committee & member ANSI X3J4 COBOL Comm. 
  193. nelson_don@comm.tandem.com
  194. No clever quotes here
  195.