#!/bin/sh                           
# Receive z/OS KC GA content   
# Turn on echoing of commands       
set -o xtrace                       
                                    
cd /global/kc4z/data                
                                    
echo "Receive z/OS KC GA content"   
ftp << EOF                          
public.dhe.ibm.com 21               
anonymous                           
yourID@your.host.com
cd systems/z/zos/sftp/kc/zosv2r3    
prompt                              
bin                                 
get zosv2r3_current.jar (replace            
quit                                
EOF

#                                   
echo "Extract jar file"             
umask 022                                 
jar -xf zosv2r3_current.jar                       
                                          
#                                         
echo "chown files"                        
chown -Rh HKCSVR /global/kc4z/data        
                                          
# display file system size                
df -kPv /global/kc4z/data                 
df -kPv /global/kc4z/data/content/zosv2r3 
                                          
# remove file                             
echo "remove jar file"                    
rm zosv2r3_current.jar                         
                                          
set +o xtrace    
