#BEGINJOBFORM HOTFIXSTAGEDINST
#TABLECALL <MVSDSDATATABLE> KEY:MVS2BDSCODE  #/ Destination Data Set Table
#SYMBOLCALLS ENTRY;CUSTPRODQUAL;TMPUNI;WORKSPC;SYSOUT;CNTLDSN;
#BUCKETINSERT DSNALLOCSTG      #/ Standalone job: Test for needed MVS datasets and create new if needed
#JOBBOUNDARY
#SET [SYSNAME] {JOBNAME}  #/ Set SYSNAME variable name to argument value. 
[JOBCARD1]
[JOBCARD2]
[JOBCARD3]
[JOBCARD4]
[JOBCARD5]
//*
#/ If this is an Action C, copy staged content up into staged libraries
#/ from base install so that when action D runs, everything is able
#/ to be copied back down (otherwise the IEBGENER whacks all content,
#/ and the non-changed content never gets replaced).  Also, we need
#/ to make sure we're in update mode, because we don't want to do
#/ a copyup in the event of an add-on or reinstall, because we would
#/ possibly blow away previously applied maintenance or setinits
#IFNOT [INSTALL-TO-STAGE] #THEN NEXT
#BUCKETINSERT COPYPREEDIT
#IFNOTEQ [UPDATEMODE] TRUE #THEN NEXT
#BUCKETINSERT COPYSDL
#BUCKETINSERT COPYPDS
#NEXT                                    
#IF [INSTALL-NEW] #THEN NEXT
#IF [INSTALL-TO-STAGE] #THEN NEXT
#BUCKETINSERT RENAMELIBS
#NEXT
#BUCKETINSERT TSORECEIVESTG           #/ Begin second (main) job. TSO alloc and receive to PDS targets.
#/BUCKETINSERT SASREGISTRYIMPORTSTG    #/ proc registry import statements
#BUCKETINSERT UNLOADUSS              #/ unload USS content
#BUCKETINSERT ULSASCATALOGDATALIBSTG  #/ Proc catalog sas datalib statements.
#BUCKETINSERT ULSASDATALIBSTG         #/ proc fcopy sas datalib statements.
#BUCKETINSERT ULSASTEMPLATEDATALIBSTG #/ proc fcopy TMPLMST in a job step by itself, otherwise hoses sashelp.
#BUCKETINSERT XXSASEDITX              #/ Edit invoke devices and editable files
#BUCKETINSERT XXCOPYOUT               #/ Copy out invoke devices not resized by SAS. 
#BUCKETINSERT XXCOPYOUTSAS            #/ Copy out TKMVSENV to FB 560 dataset
#THEN TEMPORARYSKIP    #/ Temporary skip to end around sections not yet ready or not needed
#/BUCKETINSERT UNLOADSEQDSSTG     #/ TSO define and copy to SEQ datasets  
#/BUCKETINSERT COMPRESSMVSDATASETS    #/   
#/BUCKETINSERT FREESPACEMVSDATASETS   #/
#TEMPORARYSKIP
//
#ENDJOBFORM 