MVS Tools & Tricks
Total Page:16
File Type:pdf, Size:1020Kb
MVS Tools & Tricks BY SAM GOLOB Retro MVS Computing would bet that five years ago, no one As an aside, I would also like to point out and 574 contain more collected utilities I could have predicted the enormity of that Hercules is a great boon for MVS that work on MVS 3.8. this development. As most revolutionary retirees and for MVS people who do not To find out more about the Hercules ideas go, this one started as someone’s have access to an MVS system. It used to be and MVS 3.8 improvement effort, go to dream and was developed into a workable impossible to work with MVS unless you the Hercules-390 news group at solution to the extent that (even though not had a mainframe or an expensive P/390 at www.yahoogroups.com. The spin-off many people might admit it) it is on the your disposal, and as soon as you would H390-MVS news group is useful as well. verge of making a major impact in the lives leave a company, all substantial MVS work These sites contain downloadable files of MVS systems programmers. would have to stop. Now, it is possible for and programs. This idea, which is not completely in iso- you to set up a complete “turnkey MVS Some of the user-written MVS utilities lation, is the free Linux-based S/390 system” on your home PC in less than 15 written for MVS 3.8 that are new will also instruction simulator called Hercules. minutes under Windows and be able to work on OS/390 and z/OS systems, so we Hercules has been ported to Windows and access TSO. can already see a tangible benefit from all you can run it on your home PC. this MVS retro-computing. However, there What is Hercules? Hercules is software SOUPING UP MVS 3.8 is another direct benefit — it is bringing the that simulates on a PC, S/390 instructions, entire MVS systems support community MVS DASD, I/O, and tape. Hercules was When MVS 3.8 was new 30 years ago, back to its roots. created for hobbyists, not for commercial no one could have anticipated all the future use, and because of licensing issues, most development and enhancement directions WHY STUDY MVS AS IT amateurs using Hercules run the free, for MVS. However, now that new hardware USED TO BE? ancient MVS 3.8 operating system. (such as 3380 and 3390 disk packs and However, Hercules is capable of running all such) has been developed, the Internet is a I contend that you cannot know MVS of the MVS operating systems up through fact of life, and numerous user-written today unless you know MVS as it used to z/OS. MVS programs are available for free on the be. This history is not taught in schools, and I need to emphasize that anyone who CBT Tape and in other places, the idea is to IBM does not seem to care whether MVS wants to set up a small commercial MVS try and bring your MVS 3.8 system “up to support people know the roots of MVS. installation should go to one of the IBM speed.” People are trying to make “old However, the fact is that you cannot know Partners who sells and leases PC-type MVS 3.8” do as many of the “new tricks” about today’s MVS structures unless you machines with the vendors’ commercial as possible. also know where they came from. S/390 instruction simulators; these A large group of people has undertaken Let me give you one small example: machines are properly licensed to run the this effort by adding 3380, 3390, and I SMP/E is the “modern way” that IBM uses latest IBM operating system offerings. believe 3375 support, to MVS 3.8. They to put changes and fixes on to an MVS sys- Hercules is intended for amateurs, but it have added substantial tape support, net- tem. SMP/E uses a strange mix of technical is a tool that is helping the entire MVS working support and disk compression words that are hard to learn, and which are community — commercial or otherwise. support to Hercules itself (regardless of found nowhere else. I contend that you can- My goal this month is to show you how the IBM operating system being run). not know SMP/E unless you are completely many peoples’ extensive efforts to develop Additionally, they have retrofitted sizable familiar with how the old MVS “SYSGEN” and run “ancient MVS 3.8” under Hercules numbers of user-written MVS utilities to process used to work. In addition, the MVS are beginning to become a big force in help- work on MVS 3.8. The PDS 8.5 com- SYSGEN process is no longer performed on ing to support “modern MVS,” which is mand has been given options so that it ESA, OS/390, and z/OS, but it is necessary OS/390 and z/OS. I will demonstrate how can be retrofitted to work in line mode on MVS 3.8! For more detailed information we are all profiting from the Hercules and without ISPF at the MVS 3.8 level. on this same topic, access File 014 from the development effort. Also, CBT Tape Files 077, 134, 415, 547 CBT MVS tape, which contains an article I TECHNICAL SUPPORT • JULY 2002 ©2002 Technical Enterprises, Inc. Reproduction of this document without permission is prohibited. wrote on the fundamental root principles of gets put into the right place, provided you from within the SMP/E zones using the SMP and SMP/E. have used the right control cards. GENERATE process of SMP/E. However, In today’s OS/390 and z/OS MVS world, Understanding how this really works, the bottom line is that the SMP/E JCLIN is you can ask, “How many of the new support however, is virtually impossible, unless you really a SYSGEN Stage 2 deck! people know what a SYSGEN is?” Today, first understand how a fix used to be That’s right. In fact, building a new IBM has built the equivalent of the old applied to MVS in the “ancient days.” For MVS system — even with SMP/E itself — SYSGEN process into HCD and into the example, applying a PTF (a program fix) to used to consist of assembling a SYSGEN JCLIN that is shipped with the canned MVS the MVS system used to consist of fitting Stage 2 deck and feeding that deck back zones that come with a ServicePac delivery. an object module change into a piece of the into SMP/E as JCLIN. Therefore, even if Essentially, the SYSGEN structure of MVS existing SYSGEN structure. This had to be you did not know what JCLIN was before, is completely hidden from MVS systems done by hand, and if you had a lot of PTF you know it now. However, this fact would programmers nowadays. Therefore, today’s changes applied to your system, it was dif- not be “graphic” to you — you cannot MVS systems support people never get to ficult to keep track of them. There was no understand it clearly — unless you have see the system’s load module structure in automated method of figuring out what actually seen a real SYSGEN Stage 2 deck detail. We might ask, “Without the MVS 3.8 modification level your system was at. on your screen or on paper. Nowadays, it is retro-computing, would there be any way Therefore, how did all this evolve into almost impossible to get that information for today’s sysprogs to find out about the SMP/E, which is today’s way of putting on unless you have had some experience with roots of MVS SMP/E structure?” The PTFs? To see this, you have to know what the SMP/E GENERATE process. However, answer is, “Probably not!” a SYSGEN really is. I can tell you that you can now obtain your Before I go any further, I want to state a Let me explain. Previously, IBM would own MVS 3.8 system, run a complete principle, which is very important for us to ship an entire operating system as a unit, but SYSGEN, and see the entire process graph- understand. The idea is that MVS as an the customer had to configure the pieces of ically. It all comes with retro-computing operating system is evolutionary and not the operating system to the I/O, hardware under Hercules running MVS 3.8. This is “logical.” In other words, you can only and software structure, according to the one way how retro-computing can be a understand “today’s MVS” by understand- available hardware and software the installa- great teacher to the “modern generation” ing MVS as it used to be. This sounds tion had. Therefore, in reality, the customer of MVS sysprogs. shocking, but it is absolutely true, and I will had to build an individually customized ver- show you how it works. sion of his own MVS operating system. IT IS REALLY EASIER THAN THAT IBM designed OS/360, the precursor to This is the SYSGEN process. MVS, back around 1964, as a completely What did you do? You would code up a Perhaps I have discouraged you. new operating system to run on the (then) file of assembler macros according to your Remember what I said before about being new IBM 360 hardware. The idea at that installation’s hardware and software config- able to load a complete “already time was that this operating system should uration.