<!-- This job copies the response file (MANAGED) to the HFS (/tmp)                 -->
<!-- Then it invokes the manageprofiles.sh                                         -->
<!-- In the end, it deletes the response file from the HFS.                        -->
<!-- --------------------------------------------------------                      -->
//${MEMBER}  JOB ${zJobStatement1}                                                         
${zJobStatement2}                                                                        
${zJobStatement3}                                                                        
${zJobStatement4}                                                                        
//********************************************************************/         
//*  copy response file to the HFS (/tmp)                            */         
//********************************************************************/         
//COPYUSS EXEC  PGM=IKJEFT1A                                                    
//SYSEXEC   DD DISP=SHR,
//          DSN=${zTargetHLQ}.DATA                                       
//SYSTSPRT  DD SYSOUT=*                                                         
//BPXOUT    DD SYSOUT=*                                                         
//SYSTSIN   DD *                                                                
   BBOWBOWN ${zTargetHLQ}.DATA(BBOWRESM) +                                           
            /tmp/bbowresm_${TIMESTMP} ${zControlUserid} ${zConfigurationGroup}                           
/*
//********************************************************************/         
//*  Copy response file to joblog                                    */         
//********************************************************************/         
//COPYRSP  EXEC PGM=IKJEFT01,REGION=0M,DYNAMNBR=300
//SYSTSPRT DD SYSOUT=*
//BPXOUT   DD SYSOUT=*
//RSPOUT DD PATH='/tmp/bbowresm_${TIMESTMP}'
//STDOUTL DD SYSOUT=*,DCB=(RECFM=VB,LRECL=255,BLKSIZE=0)
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(RSPOUT) OUTDD(STDOUTL)
/*                                                                              
//********************************************************************/         
//*  invoke manageprofiles.sh                                        */         
//********************************************************************/         
//WPROFILE EXEC PGM=IKJEFT01,REGION=0M,                                         
//  COND=(0,LT)                                                                 
//SYSTSPRT DD  SYSOUT=*
//BPXOUT   DD  SYSOUT=*
//STDERR   DD  SYSOUT=*                                                         
//STDOUT   DD  SYSOUT=*
//SYSTSIN  DD  *                                                                
 BPXBATCH SH +                                                                  
    ${zConfigMountPoint}+                                                                 
    /${zWasServerDir}+                                                                  
    /bin/manageprofiles.sh +
    -response '/tmp/bbowresm_${TIMESTMP}'                                     
/*
//********************************************************************/         
//*  delete response file from the HFS.                              */         
//********************************************************************/         
//DELETER1 EXEC PGM=IKJEFT01,REGION=0M                                          
//SYSTSPRT DD  SYSOUT=*
//BPXOUT   DD  SYSOUT=*
//STDERR   DD  SYSOUT=*                                                         
//STDOUT   DD  SYSOUT=*
//SYSTSIN  DD  *                                                                
 BPXBATCH SH +                                                                  
    rm /tmp/bbowresm_${TIMESTMP}                                         
/*
//********************************************************************/         
//*  Set ownership on fsdb dir                                       */
//********************************************************************/         
//FSDBOWN EXEC PGM=IKJEFT01,REGION=0M,
//  COND=(0,LT,WPROFILE)                                          
//SYSTSPRT DD  SYSOUT=*
//BPXOUT   DD  SYSOUT=*
//STDERR   DD  SYSOUT=*
//STDOUT   DD  SYSOUT=*                                                         
//SYSTSIN  DD  *                                                                
 BPXBATCH SH +                                                                  
    chown -R ${zAdminUserid} +
    ${zConfigMountPoint}+                                                          
   /${zWasServerDir}+                                                                   
   /properties/fsdb
/*
//********************************************************************/         
//*  Set permissions on fsdb dir                                     */         
//********************************************************************/         
//FSDBPERM EXEC PGM=IKJEFT01,REGION=0M,
//  COND=(0,LT,WPROFILE)                                          
//SYSTSPRT DD  SYSOUT=*
//BPXOUT   DD  SYSOUT=*
//STDERR   DD  SYSOUT=*
//STDOUT   DD  SYSOUT=*                                                         
//SYSTSIN  DD  *                                                                
 BPXBATCH SH +                                                                  
    chmod -R 775 +
    ${zConfigMountPoint}+                                                          
   /${zWasServerDir}+                                                                   
   /properties/fsdb
/*
//* ================================================================ */         
//* PROPRIETARY-STATEMENT:                                           */         
//* Licensed Material - Property of IBM                              */         
//*                                                                  */         
//* 5724-I63, 5724-H88, 5655-N01, 5733-W61                           */         
//* (C) Copyright IBM Corp. 1999, 2008                               */         
//* All Rights Reserved                                              */         
//* US Government Users Restricted Rights - Use, duplication or      */         
//* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.*/         
//* ================================================================ */         
<!-- import documents/cntl/buildInfo.jcl -->
//* ================================================================ */        
<!--                                                                  -->         
<!-- Change Activity:                                                 -->         
<!--                                                                  -->         
<!--   240619  H28W600 111504  PDML: initial release.                 -->         
<!--    250492 H28W601 022405    DB: add customization "info" file    -->         
<!--    245693 H28W601 030805    DB: copy response file to joblog     -->         
<!--   264283  H28W602 051005    DB: use date instead of TIMESTMP     -->         
<!--   261779  H28W602 051005    DB: export STEPLIB in a temp copy of -->         
<!--                                 bbowprof.sh, if LSPROD = Y       -->         
<!--    287210 H28W602 082505    DB: remove excess slash in path      -->         
<!--    307776 H28W610 092305    DB: Change WASUID to WASHUID         -->         
<!--   PK02973 H28W610 102205    DB: verify libraries that bbowprof   -->         
<!--                                 needs before invoking it         -->         
<!--    322806 H28W602 111105    DB: some steps were using >> instead -->         
<!--                                 of >>>>                          -->         
<!--    334832 H28W610 010405    DB: First write of log should use >> -->         
<!--    338132 H28W610 020606  PDML: add SBBGLOAD.                    -->         
<!--    362742 H28W610 041406    DB: remove customization log step    -->         
<!--    369117 H28W610 052306    DB: fix sed script                   -->
<!--    373356 H28W610 071206    DB: user ids instead of uid/gid      -->         
<!--    385544 H28W610 082006    DB: use manageprofiles.sh            -->         
<!--    447303 V7.0    070614  PDOP: Userid simplification            -->
<!--    447258 V7.0    20070629 PXT: Convert zmpt variables           -->
<!--    461680 V7.0    082307    DB: Move COPYRSP location in job     -->
<!--  LIDB4689  V7.0    20071024 DMB: Move load modules to hfs        -->
<!--   500745  V7.0    20080407 PXT: Change the order of DD statement -->
<!--   503121  V7.0    20080411 PXT: Add "BPXOUT    DD SYSOUT=*"      -->
<!--    590670 V7.0    040708    DB: Add steps to update fsdb dir     -->
<!--  511429   H28W700 20080519 DMB  Use admin id for fs owner        -->        
<!--  534888   V7.0    20080708 PDOP:Common timestamp and build info  -->
<!--  557434   V7.0    20081204 DMB: Add cond checks to fsdb steps    -->
<!-- ================================================================ -->         
