CoolSpools Plus

Installing new versions of the PTF exit programs

Installing the PTF exit programs

First download the zipped save file containing the PTF exit programs from this link

Next, restore the PTF exit programs to your system using one of the procedures described below.

Method A: Installing using FTP

This method uses FTP (File Transfer Protocol) to transfer the save file from your PC to your iSeries. It is assumed that you have stored the zip file which your downloaded from the link above on your PC and that you have enabled an FTP link between your PC and your iSeries.

Step 1

On your PC, choose an existing directory to use, or create a new directory, either within Windows Explorer, or from the DOS prompt, e.g.:

          md c:\tempdir

Save or copy the zip file that you downloaded from the link above into this directory.

Step 2

On your PC, unzip the file called PTFExitPgm.sav from the zip file into this directory using a utility such as pkunzip, WinZip, Norton UnZip etc.

Step 3

On your iSeries, create a save file into which you will copy the PTFExitPgm.sav file from your PC

            crtsavf lib_name/PTFExitPgm

where lib_name is the name of an existing library on your iSeries.

Step 4

On your PC, start an FTP session to your iSeries. You may use FTP packages such as CuteFTP or simply go to the DOS prompt and type:

ftp AS400_name

where AS400_name is the name of your iSeries.

You will be prompted to enter your user id and password. Please ensure that you sign on with a user id that has adequate authority. We recommend that you sign on as the Security Officer QSECOFR.

Issue the following FTP commands within the FTP session:

          binary

This command instructs FTP not to carry out any conversion on the data to be sent to the iSeries.

          quote site na 0

This makes sure the iSeries is using naming format 0 (library naming). This is important if your FTP attributes (CHGFTPA command NAMEFMT parameter) have the initial naming format set to *PATH (IFS path naming) rather than *LIB (library/file.member naming).

          cd lib_name

where lib_name is the name of the library in which your created the save file in Step 3. This command makes lib_name your current library on the iSeries.

          lcd dir_name

where dir_name is the name of the directory on your PC in which you unzipped the install files earlier. This command makes dir_name your current directory on the PC.

          put PTFExitPgm.sav PTFExitPgm

This command transmits the contents of the file PTFExitPgm.sav, which was earlier unzipped from PTFExitPgm.zip, and stores them in the save file called PTFExitPgm which you created earlier on your iSeries.

Step 5

On your iSeries, ensure that the previous step worked by displaying the contents of save file PTFExitPgm.

            dspsavf lib_name/PGMExitPgm

If you see the message (No records in save file) then something has gone wrong during the preceding steps. Try following them again. If you still cannot get this procedure to work, contact us at support@ariadnesoftware.co.uk.

Step 6

On your iSeries, issue the following command to restore the PTF exit programs to your system:

RSTOBJ

    OBJ(*ALL)

    SAVLIB(COOLSPV5R1)

    DEV(*SAVF)

    SAVF(lib_name/PTFExitPgm)

where lib_name is the name of the library in which your created the save file in Step 3.

If you have any trouble at any point in this procedure, please contact us by e-mail at support@ariadnesoftware.co.uk.

Method B: Installing a PTF using the IFS

This method uses a network drive assigned to the IFS of your iSeries to transfer the save file containing the exit programs from your PC to your iSeries. It is assumed that you have stored the zip file which you downloaded from the link above on your PC.

Step 1

On your PC, choose an existing directory to use, or create a new directory, either within Windows Explorer, or from the DOS prompt, e.g.:

          md c:\tempdir

Save or copy the zip file that you downloaded from the link above into this directory.

Step 2

On your PC, unzip the file called PTFExitPgm.sav from the zip file into this directory using a utility such as pkunzip, WinZip, Norton UnZip etc.

Step 3

On your PC, ensure that you have a network drive assigned to a directory in the root file system of your iSeries’s IFS. This can be done in Windows Explorer by selecting Tools, Map Network Drive.

Create a directory in the IFS to receive the save file.  This can be done in Windows Explorer by selecting File, New, Folder, or at the DOS prompt as follows:

md i:\IFS_dir

where I: is the network drive assigned to your iSeries and IFS_dir is the name of the directory you wish to use for this installation.

Step 4

Copy the file called PTFExitPgm.sav that you unzipped earlier into this IFS directory using Windows Explorer, or from the DOS prompt as follows:

copy c:\tempdir\PTFExitPgm.sav i:\IFS_dir

where tempdir is the name of the directory on your PC, i: is the network drive assigned to your iSeries and IFS_dir is the name of the directory you wish to use for this installation.

Step 5

On your iSeries, create a save file into which you will copy the PTFExitPgm.sav file from your PC

            crtsavf lib_name/PTFExitPgm

where lib_name is the name of an existing library on your iSeries.

Step 6

On your iSeries, copy the contents of the PTFExitPgm.sav file from the IFS directory to the save file just created, by issuing the following command:

cpyfrmstmf        fromstmf(‘/IFS_dir/PTFExitPgm.sav’)

                             tombr(‘/qsys.lib/lib_name.lib/PTFExitPgm.file’)

                             mbropt(*replace)

                             cvtdta(*none)

                             endlinfmt(*fixed)

                             tabexpn(*no)

where IFS_dir is the name of the IFS directory into which you copied the PTF files in Step 4 above, and lib_name is the name of the library in which you created the save file in Step 5 above.

Step 7

On your iSeries, ensure that the previous step worked by displaying the contents of save file PTFExitPgm

            dspsavf lib_name/PTFExitPgm

If you see the message (No records in save file) then something has gone wrong during the preceding steps. Try following them again. If you still cannot get this procedure to work, contact us at support@ariadnesoftware.co.uk.

Step 8

On your iSeries, issue the following command to restore the PTF exit programs to your system:

RSTOBJ

    OBJ(*ALL)

    SAVLIB(COOLSPV5R1)

    DEV(*SAVF)

    SAVF(lib_name/PTFExitPgm)

where lib_name is the name of the library in which your created the save file in Step 3.

If you have any trouble at any point in this procedure, please contact us by e-mail at support@ariadnesoftware.co.uk.