#BEGINJOBFORM
#/---------------------------------------------------------------------
#/ This is the top-level template for an add-on installation (ACTION B).
#/ It generates jobs to allocate MVS datasets, apply the new setinit,
#/ load the MVS dataset content, update the SAS registry, load the USS
#/ content, run the help doc setup if required, load compiled macro
#/ and SAS data library content, compress any MVS PDS that got updated,
#/ and release unused space in MVS datasets. A post-install job is
#/ is generated to update the deployment registry, initialize the VJR
#/ cache, and update the valid job drivers.
#/---------------------------------------------------------------------
#SYMBOLCALLS ENTRY;CUSTPRODQUAL;TMPUNI;WORKSPC;SYSOUT;CNTLDSN;
#JOBINFO Allocate MVS datasets required for the products being installed
#BUCKETINSERT BucketDefDsnallocstg.txt #/ this bucket also works at production qualifier for direct
#BUCKETINSERT BucketDefDsnallocML.txt #/ Test for needed MVS datasets and create new if needed
#BUCKETINSERT DirectoryCheck.txt #/ Check for PDS needing increased directory blocks
#SNIPPETINSERT ChainJob.txt
#IFEQ [UPDATEMODE] TRUE #THEN SKIPSI
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Apply the new setinit
//*
#SNIPPETINSERT ApplyNewSetinit.txt  #/ Apply the new setinit with the new products
#SNIPPETINSERT ChainJob.txt
#SKIPSI
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO TSO RECEIVE all PDS/PDSE content and select only incoming
#JOBINFO modules that are newer than the production version
#BUCKETINSERT BucketDefTSOReceive.txt #/ Begin second (main) job. TSO alloc and receive to PDS targets.
#BUCKETINSERT ActionBCModuleCheck.txt #/ Code for determining back-leveled modules.
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Import SAS registry data and do registry post processing
#IFNOTEQ [UPDATEMODE] TRUE #THEN SKIPREM   #/ this means just an add-on
#BUCKETINSERT SASRegistryRemove.txt #/ S1354598: need to remove old registry itemstore
#SKIPREM
#BUCKETINSERT BucketDefSASRegistryImportStg.txt #/ proc registry import statements
#/ The post process is placed here in case maintenance for those two members comes thru
#BUCKETINSERT BucketDefSASRegistryPostProcess.txt #/ host specific registry fix base prod
#BUCKETINSERT NickName.txt #/ proc nickname adds to core catalog
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Unload all USS content into SASHOME
#BUCKETINSERT BucketDefUnloadUSS.txt  #/ unload USS content
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Copy SAS data library and compiled macro content
#BUCKETINSERT BucketDefULSASCompMacr.txt  #/ proc catalog compiled macro content
#BUCKETINSERT BucketDefULSASDataLibStg.txt  #/ proc fcopy sas datalib content
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Run SASEDITX to update the valid jobs
#BUCKETINSERT BucketDefXXSaseditx.txt  #/ run SASEDITX to update the valid jobs
#BUCKETINSERT BucketDefXXCopyOut.txt   #/ copy out config files in case graph or data quality products were added
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Perform symbol substitution on TKMVSENV members
#BUCKETINSERT RunJavaEditX.txt
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Compress updated MVS partitioned data sets
#BUCKETINSERT CompressPDS.txt  #/ compress any updated MVS PDS
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Free unused space back to the system
#BUCKETINSERT FreeSpace.txt        #/ Free the space
#BUCKETINSERT FreeSpaceB.txt       #/ proc release stmts
#SNIPPETINSERT ChainJob.txt
#JOBBOUNDARY
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
#JOBINFO Post-install processing: update the deployment registry,
#JOBINFO initialize the VJR cache, update the valid job drivers.
#SNIPPETINSERT RunPostInstall.txt  #/ Standalone job: post-install processing
//
#JOBBOUNDARY
#JOBINFO Run the help doc setup.  This is an optional job if you want to
#JOBINFO utilize the Help system online and is submitted separately.
#JOBINFO Depending on your hardware and other jobs running,
#JOBINFO it could take an hour or more to run.
#BUCKETINSERT HelpDocsetup.txt  #/ invoke the process to create help .xml files not for z64
//
#ENDJOBFORM