Example 2: Reinstalling products not included by SYSGEN
A target zone may contain products that are installed by a system
generation procedure, as well as products that are not. When a system
is created or replaced by use of a SYSGEN, products in the target
libraries that were not included in the SYSGEN must be reinstalled.
The GENERATE command can help you reinstall them.
Note: If any elements
(such as macros or modules) are common to a product with SYSGEN support
and a product without it, you must make sure the proper version of
the element is used. To do this, you should examine all SYSGEN and
GENERATE output and edit it as necessary. You may also need to process
the steps in an order different from that described in this section.
Here is a procedure you can follow to avoid having to reinstall products when you do a SYSGEN:
- Accept or restore all applied SYSMODs. This is to make sure that the distribution libraries used by SYSGEN are at the same service level as the current target zone.
- Receive and accept the SYSMODs to be installed. You can simplify the installation of SYSMODs without SYSGEN support, if they contain inline JCLIN, by processing that JCLIN when you accept the SYSMODs. To do this, set the ACCJCLIN indicator in the DLIBZONE entry before accepting the SYSMODs.
- Allocate new target libraries.
- Do a stage 1 generation to get the JCLIN for the SYSGEN-supported products. The JCL produced describes the structure of these products.
- Run GENERATE against the old target zone, using the FORFMID operand
to specify all products that are not included in the system generation.
The JCL produced describes the structure of these products.
If inline JCLIN was processed for any of these products at ACCEPT time, do not specify them on the GENERATE command.
- Allocate a new target zone.
- Copy the distribution zone into the new target zone. If you processed inline JCLIN for SYSMODs without SYSGEN support at ACCEPT time, the target zone now describes the structure of those products.
- Add any necessary entries to the new target zone and to the global zone—for example, DDDEF entries in the new target zone and OPTIONS entries in the global zone.
- Run JCLIN against the new target zone, using the stage 1 generation
output JCL from step 4 as input. This updates the target zone with
information on the structure of all products included by SYSGEN. Note: If there are intersections between SYSGEN-supported products and products without SYSGEN support, process step 9 after step 10.
- Run JCLIN against the new target zone, using the GENERATE output as input. This updates the target zone with information on the structure of the specified products without SYSGEN support.
- Create a JOBCARD member (in this example, MYJOB). When running the GENERATE command, include a DD statement pointing to the data set containing that member (in this example, JOB).
- Run GENERATE against the new target zone without the FORFMID operand,
as in this example:
SET BDY(NEWMVS) /* Process NEWMVS tgt zone. */. GENERATE /* Generate JCL with */ JOBCARD(JOB,MYJOB) /* JOBCARD from data set. */.
This creates jobs to install all the products defined in the target zone.
- Run the GENERATE jobs to build the system.