<repo_name>nlopez59/poc-template<file_sep>/pocMig.sh
#! /bin/sh  
## Change this to your new "poc" on GHE or any Git Server url    
## This assumes you setup an SSH credentials in Git Server.
yourRepoURL="<EMAIL>:XXX/poc.git"

## confirm the location of the DBB toolkit   
mig="/var/dbb/migration/bin/migrate.sh"

## Enter the MVS PDS (don’t include the LLQ)  add a member name prefix  
hlq="HLQ.SLQ"
prefix="APPID*"

clear; echo "***" ;  echo "Migrating Client Source PDS $hlq.* to your repo called $yourRepoURL ..." ; echo "***" 
groovy -v ;  java -version ;  git --version ;  echo "***" 

w=~/poc-template ;  rm -rf   $w    
git clone <EMAIL>:nlopez59/poc-template.git
cd $w ;  rm -rf .git ;  git init
rm poc*.* ; rm -rf cobol/;  rm -rf copybook/
 
## These lines migrate source using the HLQ above and the LLQ like cobol & copy
## The prefix is used to filter which members are selected    
## Repeat the $mig line to include any other PDS's needed for the migration like BMS files 
$mig  -r $w   -m MappingRule[hlq:$hlq,toLower:true,pdsMapping:false,targetDir:cobol,extension:CBL]     "cobol($prefix*)"
$mig  -r $w   -m MappingRule[hlq:$hlq,toLower:true,pdsMapping:false,targetDir:copybook,extension:CPY]  "copy($prefix*)"
 
git add **  ;  git add .  ; git commit -m "Initial Migration"
 
git remote add origin $yourRepoURL
git push -u --force origin master

echo "** " ; echo "** Migration complete.  Please review the contents of your new repo ->" $yourRepoURL
<file_sep>/pocConf.sh
#! /bin/sh  
# un-tar the DBB Samples into the $zApp variable and initialize IDz userBuild Files  
###############################################################################
zApp=poc-zAppBuild
clear ; echo "*** Setting up DBB Samples on ->"  $zApp

FILE=$zApp/build.groovy 
if  test -f "$FILE"; then
	clear ;     echo "ERROR: $zApp  exists.  If you want to re-create it, delete it and rerun this script." ;
	              echo " ***  Be careful all your customized properties will be lost"  ; exit 12  
fi

rm -Rf dbb-samples;   rm -Rf $zApp 
mkdir  dbb-samples;   mkdir  $zApp

tar -C  dbb-samples -xovf /var/dbb/dbb-samples-1.0.5.tar
cp -r   dbb-samples/Build/zAppBuild/   $zApp 
rm     $zApp/.gitattributes

rm      -Rf poc-sandbox  ;  rm -Rf poc-IDz-logs
mkdir -p  poc-sandbox  ;  mkdir  poc-IDz-logs

echo "Done.   Follow the instructions in the 'PoC cookbook' to configure the zAppBuild properties."
