Sample Templates: TSEND and TRECV

Use the sample templates as a guide to create your own templates.

For more information on configuring template parameters, see Transfer Parameters.

You can add the number sign (#) at the beginning of a line to make the line a comment.

See the following example of the TSEND template:

# Sample template file for cfsend command 

LocalFileName:             /home/user/file
RemoteFileName:            c:\tmp\unix.txt
# IpName/Address:            127.0.0.1
Node:                      N                                 { N, Node Name }
Port:                      46464
UserId:                    uid                                       { *VER }
Password:                  pwd


# Additional File Transfer Parameters
CR_LF:                   Y                              { CRLF|Y,LF,N,CRLFY }
ASCII_to_EBCDIC:         N                      { N|Binary, Y|Text, A|Ascii }
ConvTbl:                 N                                    { N, FileName }
CreationOption:          CR                               { C,R,A,CR,CA,CRN }
TryNumber:               1                     { N|1, 0|U|Unlimited, 2 - 10 }
RetryInterval:           N                   { N, Y|1, # of min more than 1 }
CheckPointInterval:      N                   { N, Y|1, # of min more than 1 }
Compression:             N                          { N, RLE|Y, LZ, ZLIB1-9 }
EncryptionType:          N {N,DES,3DES,BlowFish|BF,BlowFishLong|BFL,Rijndael|RIJN|RJ|AES,AES128 }
LocalCTFile:             N                              { N, NONE, FileName }
RemoteCTFile:            N                                    { N, FileName }
TLS:                     N                                      { T, Y|S, N }
TLSPort:                 N
TransferType:            F              { F|File, J|Job, C|Command, P|Print }
RemoteCommand:           N                      { N, Command to be executed }
RemotePrinterName:       N                                { N, printer name }
ProcessName:             N                             { N, string, $(TIME) }
UserData:                N                                      { N, string }
ExitPrgm:                N                                    { N, FileName }
SecurityAttribTemplate:  N                                    { N, any name }
PermittedActions:        N                               { N; E,Z,S,H,A,R,C }
UnixPermissions:         N                              { N, 3 digit number }
EmailSuccess:            N                               { N, email address }
EmailFailure:            N                               { N, email address }
Post_Action1:            N                                  { N, parameters }
Post_Action2:            N                                  { N, parameters }
Post_Action3:            N                                  { N, parameters }
Post_Action4:            N                                  { N, parameters }
SilentMode:              N                                           { N, Y }
Timeout:                 10                       { Transfer timeout in min }
ClassOfService:          Default                           { from cfcos.cfg }
CRC:                     N                                           { N, Y }
MaintainFileTimestamp:   N                                           { N, Y }
TraceLevelTransfer:      D                                { D|Default, N, Y }
                         

# Additional Directory\List Transfer Parameters
ScanSubDir:              N                                            { N, Y }
StopOnFailure:           Y                                            { N, Y }
Test:                    N                                            { N, Y }
DistributionList:        N                                    { N, List Name }
ExecPostProc:            D                        { D|Default, Parent, Child }
ExecPreProc:             D                        { D|Default, Parent, Child }

# Additional Accelerator Transfer Parameters
Accelerate:              N                                            { N, Y }
ACCProtocol:             PDP                                 { TCP, UDP, PDP }
ACCEncryption:           N                                            { N, Y }
ACCCompression:          N                      { N, Y | Best, Default, Fast }
ACCMaxSpeed:             1000000                        { 256 - 1000000 kbps }
ACCHost:                 N                                         { N, Host }
ACCPort:                 N                                         { N, Port }


# Optional Parameters For zOS Transfers follow:
# In Order For Them To Take Effect, Set zOS Parameter to Y.
zOS:                    N                                           { Y, N }
DELIM:                  N                              { CRLF|Y,LF,N,CRLFY }
REMOVETRAIL:            N                                           { Y, N }
RECFM:                  FB       { F,FB,VB,V,U,FBA,FA,FBM,FM,VBA,VA,VBM,VM }
LENGTH:                 80                                     { 1 - 32760 }
BLKSIZE:                0                                      { 0 - 32760 }
ALLOC_TYPE:             K                                        { T,C,M,K }
ALLOC_PRI:              0                                      { 0 - 32000 }
ALLOC_SEC:              0                                      { 0 - 32000 }
VOLUME:                 N                                  { N, VolumeName }
UNIT:                   SYSALLDA                             { N, UnitName }
AVAIL:                  Immediate                { Immediate|I, Deferred|D }
EXEC:                   N                { N, OS390 Command to be executed }
CALLJCL:                N                     { N, OS390 program be called }
CALLPROG:               N                     { N, OS390 program be called }
SUBMIT:                 N                   { N, OS390 JCL to be submitted }
DATACLASS:              N                                   { N, DataClass }
MGMTCLASS:              N                                    { N, MgtClass }
STORCLASS:              N                                   { N, StorClass }
RetenPeriod_ExpDate:    N                         { N, # of days, yyyy/ddd }
SysOutClass:            N                                 { N, SysOutClass }
SysOutFcb:              N                                   { N, SysOutFcb }
SysOutForms:            N                                 { N, SysOutForms }
SysOutCopies:           N                                { N, SysOutCopies }
SysOutWriter:           N                                { N, SysOutWrites }
SysOutDestination:      N                           { N, SysOutDestination }
SysOutUserName:         N                              { N, SysOutUserName }
MaintainBDW:            N                                           { Y, N }
MaintainRDW:            N                                           { Y, N }
Truncate:               N                                        { Y, N, W }
UTF8BOM:                N                                     { A, R, B, N } 

See the following example of the TRECV template:

# Sample template file for cfrecv command

LocalFileName:             /home/user/file
RemoteFileName:            c:\tmp\unix.txt
# IpName/Address:            127.0.0.1
Node:                      N                                 { N, Node Name }
Port:                      46464
UserId:                    uid                                       { *VER }
Password:                  pwd


# Additional File Transfer Parameters
CR_LF:                   Y                              { CRLF|Y,LF,N,CRLFY }
ASCII_to_EBCDIC:         N                      { N|Binary, Y|Text, A|Ascii }
ConvTbl:                 N                                    { N, FileName }
CreationOption:          CR                               { C,R,A,CR,CA,CRN }
TryNumber:               1                     { N|1, 0|U|Unlimited, 2 - 10 }
RetryInterval:           N                    { N, Y|1, # of min more than 1}
CheckPointInterval:      N                   { N, Y|1, # of min more than 1 }
Compression:             N                          { N, RLE|Y, LZ, ZLIB1-9 }
EncryptionType:          N  {N,DES,3DES,BlowFish|BF,BlowFishLong|BFL,Rijndael|RIJN|RJ|AES,AES128 }
LocalCTFile:             N                              { N, NONE, FileName }
RemoteCTFile:            N                                    { N, FileName }
TLS:                     N                                      { T, Y|S, N }
TLSPort:                 N
TransferType:            F              { F|File, J|Job, C|Command, P|Print }
ProcessName:             N                             { N, string, $(TIME) }
UserData:                N                                      { N, string }
ExitPrgm:                N                                    { N, FileName }
UnixPermissions:         N                              { N, 3 digit number }
EmailSuccess:            N                               { N, email address }
EmailFailure:            N                               { N, email address }
Post_Action1:            N                                  { N, parameters }
Post_Action2:            N                                  { N, parameters }
Post_Action3:            N                                  { N, parameters }
Post_Action4:            N                                  { N, parameters }
SilentMode:              N                                           { N, Y }
Timeout:                 10                       { Transfer timeout in min }
ClassOfService:          Default                           { from cfcos.cfg }
CRC:                     N                                           { N, Y }
MaintainFileTimestamp:   N                                           { N, Y }
TraceLevelTransfer:      D                                { D|Default, N, Y }


# Additional Directory Transfer Parameters
ScanSubDir:              N                                           { N, Y }
StopOnFailure:           Y                                           { N, Y }
Test:                    N                                           { N, Y }
ExecPostProc:            D                       { D|Default, Parent, Child }
ExecPreProc:             D                       { D|Default, Parent, Child }

# Additional Accelerator Transfer Parameters
Accelerate:              N                                            { N, Y }
ACCProtocol:             PDP                                 { TCP, UDP, PDP }
ACCEncryption:           N                                            { N, Y }
ACCCompression:          N                      { N, Y | Best, Default, Fast }
ACCMaxSpeed:             1000000                        { 256 - 1000000 kbps }
ACCHost:                 N                                         { N, Host }
ACCPort:                 N                                         { N, Port }


# Optional Parameters For zOS Transfers follow:
# In Order For Them To Take Effect, Set zOS Parameter to Y.
zOS:                    N                                            { Y, N }
DELIM:                  LF                              { CRLF|Y,LF,N,CRLFY }
REMOVETRAIL:            N                                            { Y, N }
UTF8BOM:                N                                      { A, R, B, N }