Re: Anyone need a random number generator?
Gerhard Postpischil <[email protected]>
| Newsgroups | gmane.comp.emulators.turnkey-mvs |
|---|---|
| Message-ID | <[email protected]> |
On 4/28/2010 5:32 PM, Ron Hudson wrote: > If I wanted to add other subroutines or functions to the > source code would that be ok too? > > or should I duplicate this whole file and change names? Neither? Adding something to a system library is generally considered undesirable; just consider what you will do when the latest and greatest MVS release becomes available - do you rename the volumes, copy all your changes from the old system, and then name them back? The common way of doing this is to use your own library, and concatenate it either in front, or behind, the system library when you run. For example: //LKED.SYSLIB DD // DD DISP=SHR,DSN=rons.library Note that doing this requires that the format of your library be the same as the system's. Since SYS1.FORTLIB is a load-module library (PDS with RECFM=U), your link-edit output will be just fine. But in an earlier post you mentioned object code, which is what the compiler produces in SYSLIN, and you fed into to LKED step; these two forms are not interchangeable. Gerhard Postpischil Bradford, VT