CFTSEND transfer examples

This topic provides three examples of how to create the transfer environment using command line operations. These examples are:

Related topics

Example of an implicit send

The following criteria apply to this command:

  • The value of the transfer IDF is SNDIMPL
  • Transfer CFT responds to a send request from the partner, that is Transfer CFT is the sender server
  • There is no SEND request for this IDF pending in the catalog
  • The implicit send mechanism is used IMPL = YES

CFTSEND

MODE = REPLACE,

 

 

ID = SNDIMPL,

/* IDF implicit send transfers */

 

IMPL = YES,

 

 

FCODE = EBCDIC,

/* EBCDIC data in file */

 

FNAME = ’JSTATI’

/* called ... */

 

Example of a model file default description

 

CFTSEND

MODE = REPLACE,

 

 

ID = IDFDEF,

/* default IDF */

 

IMPL = NO,

 

 

FCODE = ASCII

/* EBCDIC data in file */

Corresponds to the send transfer case when the SEND command specifies an IDF not described by a CFTSEND command. This is the "default" description of the model file to be sent. The CFTPARM command must specify:

CFTPARM

DEFAULT = IDFDEF, ...

 

The SEND command specifies the name of the file to be sent (FNAME parameter).

Example of a cyclic send

The following example creates a cyclic send.

CFTSEND

MODE = CREATE,

 

 

ID = STAT,

/* File identifier */

 

FLRECL = 128,

* of max length 128 bytes */

 

FACTION = DELETE

/* Delete after send */

 

FCODE = ASCII,

/* File coding */

 

MINDATE = 19920703,

/* From 03/07/92 */

 

MINTIME = 1000,

/* at 10:00 (Monday) */

 

MAXDATE = 19921231,

/* Until 31/12/92 */

 

MAXTIME = 2000,

/* at 20:00 */

 

CYCLE = 7

/* Every week */

 

TCYCLE = DAY,

/* CYCTIME takes the value 1000 */

 

CYCDATE = 19920705,

/* Activation possible */
/* the first 3 days of */
/* the week, hence before */
/* Wednesday 10:00 */

 

PARM = ’Day statistic’

/* Associated parameter.for.*/
/*PeSIT CFT profile */

Related Links