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 -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 . (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. This was called the SYSGEN SYSGENed” MVS 3.8 system on to your be highly configurable and it should serve Stage 1 deck. Then you would assemble PC in less than 15 minutes? That is right, as a “be all and end all” for large-scale your customized Stage 1 deck against a set too. A man named Volker Bandke has industrial computing. Following that design of SYSGEN macros that IBM shipped with helped us to do that. pattern, IBM then developed OS/360 MVT, the system and this would generate a Volker has produced a CD-ROM that System/370 VS2, and MVS, using a cus- complete “build” of your own system’s contains his “complete Turnkey MVS 3.8 tomer-driven evolutionary process that load module and library structure. This system.” You can order Volker’s freeware remained largely upward compatible, so “system build deck” produced by assem- CD-ROM from the CBT Tape Web site that old MVS programs would usually bling the Stage 1 SYSGEN deck was called (reachable through the NaSPA Web site and continue to run on the new MVS systems. a “SYSGEN Stage 2 deck.” It consisted of a also directly). Volker’s CD-ROM is auto- Structure-wise, the MVS operating system series of assembly, IEBCOPY and linkedit matically self-starting and prompts you was developed using an evolutionary jobs that had to be run on a “driving MVS where to load your new MVS system on process as well. Parts of the operating sys- system,” and which would fill up all the your Windows-based PC. In less than 15 tem would not be rewritten unless they had libraries necessary for building and running minutes (conservatively), you are ready to to be to fulfill a customer-driven need. your new MVS system. get into a DOS prompt screen, start Some pieces of the MVS system actually Unless you actually have had experience Hercules, and run MVS! You will even get remain essentially the same today as they assembling and running a complete SYS- some MVS disks with many of the CBT were 30 years ago. GEN, it is basically impossible to understand Tape files already loaded. Volker’s Web site Now let’s get back to SMP/E. SMP/E what happens when you APPLY a PTF fix to is www.bsp-gmbh.com. automates the process of applying changes an MVS system using SMP/E. Yes, it is a Just one more thing — the only other miss- to an MVS system. A module had a problem re-assembly or a re-linkedit. However, what ing ingredient is a Windows TN3270 terminal which was fixed, and it must be replaced makes these new pieces fit into those old package for the PC. This will get within the operating system structure. How places? How does SMP/E “know”? your MVS console and your TSO terminals. do you do it? Nowadays, it is automatic. The answer is that SMP/E uses a pattern Although there are many good Windows You RECEIVE and APPLY the fix (called a that gets put into it, via the JCLIN. You TN3270 packages available, I recommend PTF) into SMP/E and it “automagically” can laboriously extract this JCLIN pattern Tom Brennan’s VISTA package, which is a

©2002 Technical Enterprises, Inc. Reproduction of this document without permission is prohibited. TECHNICAL SUPPORT • JULY 2002 low-cost solution you can obtain online from www.tombrennansoftware.com.

CONCLUDING THOUGHTS

In summary, I would say that Hercules with MVS 3.8 retro-computing has opened up a completely new dimension in our field and has made it possible for new MVS sysprogs to learn many of the old tricks. All of you can now have “MVS at home,” if you want. Although it is not the current OS/390 or z/OS, with all the bells and whistles, it is a complete MVS sys- tem, which in the long run, will greatly add to the depth of your MVS knowledge — I guarantee! Best of luck to all of you, and hope to see you next month!

NaSPA member Sam Golob is a senior systems programmer. He also participates in library tours and book signings with his wife, author Courtney Taylor. Sam can be contacted at [email protected]. The Online CBT Tape Web site can be accessed from the “Members Only” section of the NaSPA Web site at www.naspa.com.

TECHNICAL SUPPORT • JULY 2002 WWW.NASPA.COM