Wednesday, 7 February 2018

Export /Import Datastage jobs - istool.sh

istoolDir="/opt/IBM/InformationServer/Clients/istools/cli/"

#export isx

${istoolDir}/istool.sh export -v -ds '"'$server'/'$project'/*/'$f'.*" ' -domain "$domain" -username "$username" -password "$pwd" -archive $destD/$f".isx" >> logfile


#import isx

${istoolDir}/istool.sh import -dom <domain:port> -u <username> -p <password> -ar <full_path/file.isx> -replace -ds "<dsserver>/<dsproject>" >> logfile


# log validation - wc -l logfile = (job counts * 4) + 1