Open topic with navigation

TIBCO® Managed File Transfer Platform Server for z/OS 8.1.0

# Waiting for a Single Transfer Request to Complete

To wait for a single transfer to complete, add the WAIT parameter to the REXX exec that queues the request.

The INTERVAL and TIMEOUT values use their default values unless otherwise specified. When the timeout expires and the PURGE parameter is specified, the uncompleted requests are purged from the queue. If you want to record status, specify the SAY parameter. For more information of the parameters of the WAIT request, see Waiting for Transfer Requests to Complete.

## Examples

The following examples shows how to set the Platform Server to wait for a single transfer request to complete by using the WAIT parameter.

- Queue a request and wait for the request to be completed:

       FUSSEND IPADDR=190.190.190.100 LF=local.file RF=remote.file WAIT

  The output of this example is as follows:

      ***Fusion retcode.......=  0
      ***Fusion TransNum......=  IA21500000
      ***Completed transfers..=  01
      ***Successful transfers.=  01
      ***Failed transfers.....=  00
      ***Purged transfers.....=  00
      ***Last Message.........=  PGTF3101I Activity IA21500000 successfully
      transferred 6403 records with remote node 190.190.190.100
      Request Queued successfully with TRANSNUM= IA21500000

- Update the status on each scan of the file by adding the SAY parameter:

      FUSSEND IPADDR=190.190.190.100 LF=local.file RF=remote.file WAIT SAY

  The output of this example is as follows:

      TRANSACTION=IA21500001 STATUS=ACTIVE   RECORD=000000000 BYTES=000000000
      TRANSACTION=IA21500001 STATUS=ACTIVE   RECORD=000006403 BYTES=000518501
      TRANSACTION=IA21500001 STATUS=COMPLETE RECORD=000006403 BYTES=000518501
      ***Fusion retcode.......=  0
      ***Fusion TransNum......=  IA21500001
      ***Completed transfers..=  01
      ***Successful transfers.=  01
      ***Failed transfers.....=  00
      ***Purged transfers.....=  00
      ***Last Message.........=  PGTF3101I Activity IA21500001 successfully transferred 6403 records with remote node 190.190.190.100
      Request Queued successfully with TRANSNUM= IA21500001

Note: Any time a wait operation is performed either by specifying the WAIT parameter on a request or by executing the FUSWAIT exec, the Platform Server displays a return code as well as the numbers of completed, successful, unsuccessful, and purged transfers. If a transfer is not completed by the TIMEOUT interval and you do not specify the PURGE parameter, the transfer request is not listed in any of the summary totals.

Copyright © 2003-2021. TIBCO Software Inc. All Rights Reserved.