home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / bit / listserv / ibmmain / 2699 < prev    next >
Encoding:
Text File  |  1992-11-23  |  3.5 KB  |  71 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!STANFORD.BITNET!M.LAWRENCE
  3. Message-ID: <IBM-MAIN%92112313394478@RICEVM1.RICE.EDU>
  4. Newsgroups: bit.listserv.ibm-main
  5. Date:         Mon, 23 Nov 1992 11:11:10 PST
  6. Sender:       IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
  7. From:         "Mark C. Lawrence" <M.Lawrence@STANFORD.BITNET>
  8. Subject:      MVS treatment of DISP=MOD (was: IEFBR14)
  9. Comments: To: ibm-main@ricevm1.bitnet
  10. Lines: 59
  11.  
  12. REPLY TO 11/22/92 01:04 FROM IBM-MAIN@RICEVM1.BITNET "IBM Mainframe Discussion
  13. list": Re: IEFBR14
  14.  
  15. On SUN 11/22/92 Leonard D Woren <LDW@USCMVSA.BITNET> said,
  16. >On Sat, 21 Nov 1992 18:41:07 EST,
  17. >   Jerry Bryan <BRYAN@WVNVM.WVNET.EDU> said:
  18. >> I am not sure why you consider this behavior of MVS to be broken.
  19. >> It is exactly what would happen if you said (OLD,CATLG) and did not
  20. >> open the data set, for example by running IEFBR14.
  21. >
  22. >I consider it broken because MOD will be treated as NEW if the dataset
  23. >doesn't exist, OLD-Extend if it does exist, unless you point to a
  24. >specific volume, in which case it's only treated as OLD-Extend.  ...
  25. >Specifically, why will MOD create the dataset on a generic/esoteric
  26. >unit, but not on a specific volume???  The only other organization
  27. >that can write arcane rules like that is the IRS, and we know
  28. >*they're* unreasonable.  This behaviour is a *perfect* example of why
  29. >users consider MVS too complicated.
  30.  
  31. Actually the rule is very simple:  If *no volume information is available*,
  32. the data set is treated as NEW; if volume information *is* available, the data
  33. set is treated as old-extend.  It is neither complicated nor arcane.  I can't
  34. be sure of the reasoning behind it--perhaps some old IBM'er will enlighten
  35. us--but my assumption is that it was specifically designed to handle object
  36. files written by compilers.  Look in any compile or compile/link proc, for any
  37. language, and you'll see something like
  38.  
  39.          //SYSLIN DD DSN=&&LOADSET,DISP=(MOD,PASS),UNIT=SYSDA,
  40.          //  SPACE=...,DCB=...
  41.  
  42. (btw, these haven't changed since early OS/360 except to add the second
  43. ampersand when symbolic parameters were introduced).
  44.  
  45. If you stack multiple compile steps, the first one sees this as NEW,PASS and
  46. creates (and passes) a temporary file.  Second and subsequent steps find it in
  47. the pass queue and treat it as MOD.  Since the most common use of temporary
  48. files passed between steps was for object modules, it's easy to believe that
  49. the rule was written just to make that process easy.
  50.  
  51. As to why they decided to test "is volume known" rather than "is dataset in
  52. catalog/pass queue" consider the alternatives.  You can't base it on whether
  53. the data set is on the volume, because the initiator doesn't do the
  54. OBTAIN...OPEN does that.  Suppose you say "if in catalog or pass queue treat
  55. as old-extend, else treat as new".  Then, suppose we want to MOD an existing
  56. data set:  If we refer to it via the catalog, it gets treated as MOD, but if
  57. we specify unit/vol, the system will try to treat it as NEW.  Keep in mind
  58. that it was common to have uncataloged data sets that were referred to by
  59. specific volume in the JCL.  My installation didn't *allow* ordinary users to
  60. catalog there files until the mid-70s.
  61.  
  62. I think it's reasonable to assume that the MOD stuff was never intended as a
  63. way to optionally create a *permanent* data set.
  64.  
  65. Mark C. Lawrence
  66. Systems Programmer     Internet: M.Lawrence@Forsythe.Stanford.edu
  67. Stanford Data Center     Bitnet: M.Lawrence@STANFORD
  68. Stanford, CA 94305-4136     Tel: (415) 723-4976
  69.  
  70. To:  IBM-MAIN@RICEVM1.BITNET
  71.