)CM Change Defaults
)CM  
)CM ================================================================ */
)CM                                                                  */
)CM Change Activity:                                                 */
)CM LIDB4300-31.1 V70 12/27/07  guorong   split #3 jobs into 3 jobs  */
)CM PK85747     08May2009       stelzerk        INCORRECT SYNTAX IN BBOWMG3X JOBS*/
)CM 584679      13May2009       stelzerk    Use _BPX_SHAREAS=NO              */
)CM 704163      22Jun2011       cheryllk    Update V7 to V8          */
)CM ================================================================ */
)CM                                                                        
//&MEMBER  JOB &BBOJCL1                                                         
&BBOJCL2                                                                        
&BBOJCL3                                                                        
&BBOJCL4                                                                        
//********************************************************************          
//* This job performs the Migration of a WebSphere Application Server*          
//* Node to a WebSphere V8 Application Server Profile                *          
//********************************************************************          
//*                                                                             
//*                                                                             
//*                                                                             
//***************************************************************               
//*                                                             *               
//* Create working directory to run migration from              *               
//*                                                             *               
//***************************************************************               
//*                                                                             
//*                                                                             
//SETUP  EXEC PGM=IKJEFT01,REGION=0M                                            
//SYSTSPRT DD SYSOUT=*                                                          
//SYSTSIN  DD *                                                                 
  BPXBATCH SH +                                                                 
   if !(test -d &MBTMPDIR/&TIMESTMP.) +                                         
     then +
      mkdir -p &MBTMPDIR/&TIMESTMP.; + 
      chmod 777 &MBTMPDIR/&TIMESTMP.; +
      echo "&MBTMPDIR/&TIMESTMP. did not exist." +
      >> &MBTMPDIR/&TIMESTMP./&MEMBER..err; +
      echo "Make sure you run BBOWBPRO before running BBOWBPRE." +
      >> &MBTMPDIR/&TIMESTMP./&MEMBER..err; +
      exit 8; +
   fi;
/*                                                                              
//*                                                                             
//*                                                                             
//*********************************************************************       
//*  WRCONFIG                                                                   
//*                                                                             
//*  Copy the Dialog Generated Variables over to a shell script that            
//*  will be used to set-up the migration environment variables.                
//*                                                                             
//*********************************************************************       
//*                                                                             
//WRCONFIG EXEC PGM=IKJEFT01,COND=(4,LE)
// SET TRGDS='&TRGHLQ.'                                        
//*                                                                             
//SYSTSPRT DD SYSOUT=*                                                          
//*                                                                             
//ENVVARS DD DSN=&&TRGDS..DATA(BBOWMBEV),
//           DISP=OLD
//*                                                                             
//HFSOUTL  DD PATH='&MBTMPDIR/&TIMESTMP./_',                                    
//            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),                                 
//            PATHMODE=(SIRWXU,SIRWXG)                                          
//*                                                                             
//SYSPRINT DD SYSOUT=*                                                          
//SYSTSIN  DD DATA                                                              
ocopy indd(ENVVARS) outdd(HFSOUTL)                                              
/*                                                                              
//*                                                                             
//*                                                                             
//*********************************************************************       
//*  WRRESP                                                                     
//*                                                                             
//*  Copy the Dialog Generated Variables over to a Profile Creation             
//*  Response File.                                                             
//*                                                                             
//*********************************************************************       
//*                                                                             
//WRRESP EXEC PGM=IKJEFT01,COND=(4,LE)                                          
// SET TRGDS='&TRGHLQ.'                                                         
//*                                                                             
//SYSTSPRT DD SYSOUT=*                                                          
//*                                                                             
//ENVVARS  DD DSN=&&TRGDS..DATA(BBOWMBRF),                                      
//            DISP=OLD                                                          
//*                                                                             
//HFSOUTL  DD PATH='&MBTMPDIR/&TIMESTMP./_ProfResponse',                        
//            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),                                 
//            PATHMODE=(SIRWXU,SIRWXG)                                          
//*                                                                             
//SYSPRINT DD SYSOUT=*                                                          
//SYSTSIN  DD DATA                                                              
ocopy indd(ENVVARS) outdd(HFSOUTL)                                              
/*                                                                              
//*                                                                             
//*                                                                             
//***************************************************************               
//*                                                                             
//* MKCONFIG: Gather Information from existing configuration                    
//*                                                                             
//***************************************************************               
//*                                                                             
//MKCONFIG EXEC PGM=IKJEFT01,REGION=0M,COND=(4,LE)                              
//SYSTSPRT DD SYSOUT=*                                                          
//SYSTSIN  DD *                                                                 
  BPXBATCH SH +                                                                 
  &MBTMPDIR/bbomigrt2.sh mkconfig +                                             
     &MBTMPDIR/&TIMESTMP./_ +                                                   
   1>> &MBTMPDIR/&TIMESTMP./&MEMBER..out +                                      
   2>> &MBTMPDIR/&TIMESTMP./&MEMBER..err;                                       
/*                                                                              
//*                                                                             
//***************************************************************               
//*                                                                             
//* VERIFY: Verify the Environment File                                         
//*                                                                             
//***************************************************************               
//*                                                                             
//VERIFY EXEC PGM=IKJEFT01,REGION=0M,COND=(4,LE)                                
//SYSTSPRT DD SYSOUT=*                                                          
//SYSTSIN  DD *                                                                 
  BPXBATCH SH +                                                                 
  &MBTMPDIR/bbomigrt2.sh validate +                                             
     &MBTMPDIR/&TIMESTMP./_ +                                                   
   1>>>> &MBTMPDIR/&TIMESTMP./&MEMBER..out +                                    
   2>>>> &MBTMPDIR/&TIMESTMP./&MEMBER..err;                                     
/*                                                                              
//*                                                                             
//*                                                                             
//***************************************************************               
//*                                                                             
//* PREUPGRD: Prepare to Migrate a Node to the new Profile                      
//*                                                                             
//***************************************************************               
//*                                                                             
//*                                                                             
//PREUPGRD   EXEC PGM=IKJEFT01,REGION=0M,COND=(4,LE)                            
//SYSTSPRT DD SYSOUT=*                                                          
//STDENV DD *                                                          
#  Remove comment on following line if want to set _CEE_RUNOPTS        
#_CEE_RUNOPTS=TRAP(ON,NOSPIE)                              
//SYSTSIN  DD *                                                                 
  BPXBATCH SH export _BPX_SHAREAS=NO; +                                                                
  &MBTMPDIR/bbomigrt2.sh WASPreUpgrade +                                        
       &MBTMPDIR/&TIMESTMP./_      +                                            
   1>>>> &MBTMPDIR/&TIMESTMP./&MEMBER..out +                                    
   2>>>> &MBTMPDIR/&TIMESTMP./&MEMBER..err;                                     
/*
//*
//