Example of using GIMGTPKG

Figure 1. GIMGTPKG exampleStart of change
//job      JOB ...
//step     EXEC PGM=GIMGTPKG
//SMPOUT   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SMPNTS   DD PATH='/u/usr01/pkgs/',PATHDISP=KEEP
//SMPCPATH DD PATH='/usr/lpp/smp/classes/',PATHDISP=KEEP
//SMPJHOME DD PATH='/usr/lpp/java/J6.0/',PATHDISP=KEEP
//SMPSRVR  DD *
<SERVER host="host.sample.com"
        user="usr01"
        pw="n0peekng">
  <PACKAGE file="CBPROC/O12345/RIMTAPE/GIMPAF.XML"
           hash="1234567890123456789012345678901234567890"
           id="O12345">
  </PACKAGE>
</SERVER>
/*
//SMPCLNT  DD *
<CLIENT retry="3">
</CLIENT>
/*
End of change

In this example, a GIMZIP package residing on the host.sample.com FTP server is transferred onto the local z/OS® host and stored in the /u/usr01/pkgs/ directory. The <SERVER> tag and attributes in the SMPSRVR data set describe the FTP server and the package to be obtained. The <CLIENT> tag and attributes in the optional SMPCLNT data set indicate FTP operations should be retried a maximum of three times if necessary in order to obtain full and accurate package files.