transfer cft installation guide ibm i - axway …€¦ · call from a cobol/ile or rpg/ile program...

195
Transfer CFT IBM i Version 3.2.4 1 June 2018 Installation and Operation Guide

Upload: builiem

Post on 30-Aug-2018

262 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

    

Transfer CFT IBM iVersion 3.2.41 June 2018

Installation and Operation Guide

Page 2: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2017 Axway

All rights reserved.

This documentation describes the following Axway software:

Transfer CFT 3.2.4

No part of this publication may be reproduced, transmitted, stored in a retrieval system, or translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise, without the prior written permission of the copyright owner, Axway.

This document, provided for informational purposes only, may be subject to significant modification. The descriptions and information in this document may not necessarily accurately represent or reflect the current or planned functions of this product. Axway may change this publication, the product described herein, or both. These changes will be incorporated in new versions of this document. Axway does not warrant that this document is error free.

Axway recognizes the rights of the holders of all trademarks used in its publications.

The documentation may provide hyperlinks to third-party web sites or access to third-party content. Links and access to these sites are provided for your convenience only. Axway does not control, endorse or guarantee content found in such sites. Axway is not responsible for any content, associated links, resources or services associated with a third-party site.

Axway shall not be liable for any loss or damage of any sort associated with your use of third-party content.

Page 3: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Contents

Preface 1About Transfer CFT 1Installation guide outline 1Who should read this guide 2Transfer CFT documentation set 2Support services 2

Accessibility 3Accessibility features of the documentation 3Screen reader support 3Support for high contrast and accessible use of colors 3

1 Prerequisites 5Hardware prerequisites 5Disk space 5

Software environment 5Java 6End User License Agreement 6Default ports 7Apply a license key 8Key management 8Prior to upgrading with a service pack 9Restoring a Transfer CFT 9

Certificates 10Create a class 10Create a subsystem 13TCP/IP requirements 15Interface level used 15Execution environment 15Network environment 15Precautions 16

2 Installation 17Before you start 17Installation and upload overview 17Create users and set security rights 18User prerequisites 18Create an installation user with basic rights 18Create a standard user to operate Transfer CFT 18

Transfer CFT IBM i3.3.0 Installation Guide  i

Page 4: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

19Set up the operating environment 20Using a specific subsystem 20Using libraries 20Creating a profile and libraries 21

Upload and restore the installation files 22Start the installation 23About the INSTALL command 24Use an independent ASP (optionally) 25Install Transfer CFT on the IBM i system 26Create an additional user 27Manually enable governance 31Enable Sentinel 32

About multi-node architecture 36Prerequisites 36Concepts 36Service descriptions 36Recovery 37Limitations 38Procedure overview 39Multi-node unified configuration parameters 40Managing multi-node 42

Working with files and coding 43Conversion tables 44About Transfer CFT file types 48Integrated File System (IFS) 53

Transfer CFT IBM i utilities 60Using the Menu bar 61Purging residual Transfer CFT objects 61Using CFTUTIL Transfer CFT IBM i specific commands 62

3 Post-installation 65Overview of Transfer CFT in production 65Manage commands 65Standard commands 65Deprecated commands 66

Starting and stopping the Copilot server 67Start the Copilot server 67Stop the Copilot server 67Configure the Copilot server 68Start and stop Copilot 69Starting the Copilot client 70

Manage Transfer CFT using IFS 70Central Governance registration concepts 71

Transfer CFT IBM i3.3.0 Installation Guide  ii

Page 5: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Step overview 72Re-register with Central Governance 73Customize the SSL certificate Distinguished Name (DN) 73Override the default policy 73

How to use programs without menus 74Operating Transfer CFT 75Transfer CFT 3.2.x 76Using the common Transfer CFT commands 76Submit CFTUTIL commands 78About transport security and PKIUTIL commands 79Using the PKIUTIL utility 80Interpreting source members 82Running Transfer CFT 83Starting Transfer CFT 84Shutting down Transfer CFT 88Configuring Transfer CFT parameters 88Exits in Transfer CFT Iseries 92Identity and access management 92

Viewing transfer messages 95Example 95

Application programming interface 99Call from a COBOL/ILE or RPG/ILE program 99Call from a C Program 100

Start the Transfer CFT IBM i Manager 101Starting Transfer CFT in batch mode 101

4 Create an Express Package 103Create a deployment package for Transfer CFTs used with Central Governance 103Create a  Transfer CFT deployment package for standalone usage 104Procedure 104

Limitations 106

5 Upgrade and migrate procedures 107Prerequisites 107Important information before performing an upgrade or migration procedure 107About license keys 107

Update Transfer CFT IBM i 108Display patch information 108Update with a service pack 108Apply a patch 109

Uninstall a service pack or patch 110Manually migrate Transfer CFT 111Prerequisites 111Migrating from Transfer CFT 2.3.2 112

Transfer CFT IBM i3.3.0 Installation Guide  iii

Page 6: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Migrating from Transfer CFT 2.4 115Migrating from Transfer CFT 2.6.4 SP2 or 2.7 120Migrating from Transfer CFT 3.0.1 or 3.1.3 122

Activate Central Governance connectivity 126Overview 126Automatically activate connectivity 126Manually activate connectivity 127Connect to a different Central Governance system 130Use former configuration objects 130View managed features 130

6 Uninstall Transfer CFT 133

7 Troubleshooting 135Using the support tool 135Using the CFTSUPPORT command 136Tracking Transfer CFT IBM i activities 137IFS access error codes: DIAGP 139

A About APIs 141About  Transfer CFT services 141Catalog querying services 142Transfer   services 144Synchronous   communication services 146Description of functions 146

About Web services 147License key 147About the WSDL file 147General restrictions 148WS-I recommendations 148

Transfer CFT JPI 149Transfer CFT JPI 150

About Transfer  CFT services in C 151Call syntax 151About Transfer  CFT services in C 152About cftapi2 153Transfer CFT   catalog query services 160Synchronous   communication services 166Transfer   services in C 169

About Transfer CFT services in COBOL 173Call syntax 173Return codes 173About Transfer CFT services in COBOL 174Transfer CFT   catalog query services 175

Transfer CFT IBM i3.3.0 Installation Guide  iv

Page 7: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Synchronous   communication services 180Transfer   services in COBOL 183

B Appendix B: Menu mapping 186Transfer CFT 2.7.1 186Transfer CFT 3.0.1 187Transfer CFT 3.1.3 SP4 and higher 188

Transfer CFT IBM i3.3.0 Installation Guide  v

Page 8: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

 Preface

This documentation provides information to aide you in installing, upgrading, or migrating Transfer CFT. 

About Transfer CFTTransfer CFT is the file transfer component in the Axway 5 Suite platform, and provides a multi-platform, high-volume, file and message transfer service. This documentation explains how to install, configure, and manage Transfer CFT.

Using version 3.1 or higher, you can configure Transfer CFT and manage flows using Axway Central Governance. Central Governance simplifies Transfer CFT usage, and provides services such as identity and access management, certificate management, monitoring, alerting, and a web dashboard. 

For more information on Axway products, visit www.axway.com.

Installation guide outlineThis guide explains how to perform a full installation of Transfer CFT. It also describes how to:

Prepare and plan your installation – Describes what you should plan for deploying and configuring your system architecture, installing any prerequisite software, and configuring other components.

Install  – Describes how to perform a complete install as well as apply a service pack. 

Post installation – Provides instructions on how to check if the installation was successful and set up Transfer CFT. Additionally it describes any tasks to perform before the administrator can log on to the product for initial configuration.

Upgrade – Involves a change in product version and the replacement of binary artifacts; may also require configuration change. 

Migrate– Involves a change in product versions, such as from 2.7.1 to 3.2.4. As part of this process, the existing configuration may need to be modified or updated to be compatible with the new version. For example, you may need to modify configuration files or the internal datafile schema. Because migration can be a complex process, organizations typically set up a migration project to study the new features and determine the impact on the existing configuration, and to plan for the changes across the various environments. 

Uninstall – Describes how you can uninstall Transfer CFT. 

Transfer CFT IBM i3.3.0 Installation Guide  1

Page 9: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

 Preface

ExpressPackage - Describes how to create a product package that you can deploy to multiple remote sites.

Troubleshoot the installation or registration process – Describes the different types of troubleshooting errors you can encounter during installation, upgrade and post-installation. 

Who should read this guideThis guide is intended for enterprise personnel involved in installing software and Axway Professional Services personnel. Familiarity with Axway products is recommended. 

This guide presumes you have knowledge of:

 l Your company’s business processes and practices

 l Your company’s hardware, software, and IT policies

 l The Internet, including use of a browser

Others who may find parts of this guide useful include network or systems administrators and other technical or business users.

Transfer CFT documentation setTransfer CFT provides a complete set of documentation, covering all aspects of using the product. These documents include the following:

 l Transfer CFT 3.2.4  Release Notes

 l Transfer CFT 3.2.4  User Guide (HTML)

 l Transfer CFT 3.2.4 Local Administration User Guide

 l Axway Supported Platforms Guide

 l Axway Interoperability Matrix

Support servicesThe Axway Global Support team provides worldwide 24 x 7 support, subject to validation of your license agreement. Email [email protected] or, for your local support telephone number, visit Axway Sphere at support.axway.com and click Contact Axway Support.

Transfer CFT IBM i3.3.0 Installation Guide  2

Page 10: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

 Accessibility

At Axway, we strive to create accessible products and documentation for all of our users.

This section describes the accessibility features of the documentation.

Accessibility features of the documentationThe product documentation provides the following accessibility features:

 l Screen reader support

 l Support for high contrast and accessible use of colors 

Screen reader support l Alternative text is provided for images whenever necessary. 

 l The PDF documents are tagged to provide a logical reading order.

Support for high contrast and accessible use of colors l The documentation can be used in high-contrast mode.

 l There is sufficient contrast between the text and the background color.

Transfer CFT IBM i3.3.0 Installation Guide  3

Page 11: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

 Accessibility

4  Installation Guide Transfer CFT IBM i3.3.0

Page 12: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

This section describes the prerequisites for Transfer CFT 3.2 IBM i and covers:

 l Hardware environment 

 l Software environment  

Hardware prerequisitesTransfer CFT 3.2 IBM i can only be installed on an system based on the RISC architecture.

Disk spaceFor performance reasons, you are advised to configure a storage pool size of at least 250,000 Kbytes (245 MB). See Create a subsystem on page 13.

You must ensure that the:

 l Disk space used to restore the Transfer CFT objects is approximately 250 MB, excluding files to be transferred.

 l Total disk space used on the system still allows acceptable performance levels to be maintained (< 80%).

Software environmentThis section describes the Transfer CFT 3.2 IBM i software environment:

 l Transfer CFT IBM i 3.2 supports version V7R1 (7.1) and higher

 l The file management mechanism uses the standard OS database management system and IFS (Integrated File System). The Transfer CFT IBM i Manager uses the PDM (Program Development manager) and SEU (Source Entry Utility).

 l The Transfer CFT IBM i Manager uses the UIM (User Interface Manager).

 l The Transfer CFT APIs only support an ILE environment.

Transfer CFT IBM i3.3.0 Installation Guide  5

Page 13: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

JavaWhen using Secure Relay, you require Java to be installed in the same environment as the Transfer CFT installation. The Master Agent is managed, but the Router Agent can be in another environment.

Check your Java version, Secure Relay requires Java 6.0.1.

End User License AgreementYou should read and accept the End User License Agreement (EULA) prior to installing Transfer CFT. The EULA file is in the directory where you decompressed the Transfer CFT package.

6  Installation Guide Transfer CFT IBM i3.3.0

Page 14: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Default ports

Default portsThe following list contains the default Transfer CFT port numbers used for installation. You can check in advance that these ports do not conflict with ports used by other applications on the same machine. 

You may need to modify the default port numbers, depending on your configuration.

Table 1. Default ports by platform

The Internet Assigned Numbers Authority (IANA) reserves the  TCP ports 1761-1768  for Transfer CFT. For more information, refer to: www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.

Component Port

PeSIT  1761 

SSL  1762 

COMS  1765 

Copilot 1766 

Copilot for Central Governance 1767 

Central Governance 12553 

Central Governance SSL 12554

Secure Relay MAma.comm_port

 6801

Secure Relay RAra.comm_portra.admin_port

 68116810

Legend:

 l PeSIT (PESITANY protocol): PeSIT in plain text

 l SSL: PeSIT protocol over SSL/TLS

 l COMS: Synchronous transfers

 l Copilot: Provides access to Transfer CFT Copilot server from a user Internet browser

 l Copilot for Central Governance: Provides secure access for Central Governance (mutual authentication)

 l Central Governance: Used to connect to Central Governance

Transfer CFT IBM i3.3.0 Installation Guide  7

Page 15: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

Apply a license keyYou need to apply a valid license key to Transfer CFT in the following situations:

 l You perform an initial Transfer CFT installation.

 l A hardware upgrade changes the CPU ID (CPU serial number).

 l After a year passes, to replace an expired license key.

 l To ramp up a Transfer CFT Disaster Recovery instance (for example, on a DR LPAR for z/OS systems).

 l If you are migrating from a version 2.x Transfer CFT to a version 3.x. 

Key management

Obtain a license key 1.  For a new installation, install Transfer CFT.

 2.  After completing the installation, or for an existing installation, use the command cftutil about to retrieve your system information. For details see the examples below.

 3.  Contact the Axway Fulfillment team at the appropriate email address to obtain a valid key.

 l For a US key, contact:  [email protected]

 l For an EMEA or APAC key, contact: [email protected]

 4.  Provide the hostname  where Transfer CFT is to be installed or updated.

 5.  Provide the list of characters in the  CPU ID. 

Apply a license keyApply the license key(s) that you received from the Axway Fulfillment team as follows:

 l Navigate to the <target>.SAMPLE library, and edit the 'PRODKEY' member.

 l Replace the X's with the product key. The key may exceed the number of X's displayed.

Examples

Use the CFTUTIL utility to execute the ABOUT command to find the CPU ID.

CFTUTIL PARAM(ABOUT)

Host information :

* model = 525 *

cpuid = 10A16B2

In this example, you would provide the CPU ID 10A16B2.

8  Installation Guide Transfer CFT IBM i3.3.0

Page 16: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Apply a license key

Use the display system value command to get the serial number, known as QSRLNBR: 

DSPSYSVAL SYSVAL(QSRLNBR)

System value . . . . . : QSRLNBR

Description . . . . . : System serial number

Serial number . . . . : 06890AP

In this example, you would provide the CPU ID 06890AP.

Note Your values will differ from those shown in the examples.

Prior to upgrading with a service packUpgrading Transfer CFT by applying a new service pack can overwrite your Transfer CFT program and production library. Therefore, as a precaution, prior to upgrading you must:      

 l Copy the existing Transfer CFT program library, for example CFTPGM in CFTPGM.O.

 l Copy the existing Transfer CFT production library, for example CFTPROD in CFTPROD.O.

The CFTPROD library contains your personal data and should not be cleared. Data may include:

 l Files, Uconf file, Transfer CFT batch procedures, system objects(*datara,*jobd, *sbsd,*cls,*jobq, etc.)

 l Scripts, procedures, files used by the Transfer CFT Enabler OS/400 Connector

 l Internal Access Management files

Note The libraries CFTPGM.O and CFTPROD.O enable a synchronized and rapid Transfer CFT restart if required.

Restoring a Transfer CFT

OverviewYou can restore the Transfer CFT product on IBM i from a DVD or from the Axway Support web site at support.axway.com. 

For a remote IBM I, use FTP from a PC workstation where the DVD contains a Transfer CFT save file (*SAVF).  

To avoid being blocked by the execution rights for commands used in Transfer CFT programs, you must assign user rights to the Transfer CFT profile. Enter the following command to assign user rights: 

GRTOBJAUT OBJ(QSYS/*ALL) OBJTYPE(*CMD) USER(CFT) AUT(*USE)

Transfer CFT IBM i3.3.0 Installation Guide  9

Page 17: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

CertificatesUsing the default certificates that are supplied with Transfer CFT is strongly discouraged in a production environment. You should use your own certificates to enhance security.

Type Location Certificate Expires

Secure Relay

<Transfer_CFT>/home/distrib/xsr SecureRelayCA.pem  November 2021

    SecureRelayMasterAgent.p12 November 2021

Central Governance

<Transfer_CFT>/runtime/conf/pki

passportCA.pem November 2019

For a DER certificate, the file must be created with a record length equal to the size of the certificate in bytes then the certificate can be uploaded to the newly created file.

Example for IBMi

Your certificate 2k_l1_user1_key.der size is 1,191 bytes. Before uploading this certificate to the IBMi server, you would create a file with a record length of 1 191 bytes, as follows:

CRTPF FILE(YOURLIB/DER_CERT) RCDLEN(1191)

You can then upload 2k_l1_user1_key.der to YOURLIB/DER_CERT.

Create a class 1.  In the system Objects menu, type 5 and press Enter to validate.

 2.  Specify class information.

Create Class (CRTCLS)

Type choices, press Enter.

Class . . . . . . . . . . . . . > CFTCLS Name

Library . . . . . . . . . . . > CFTPROD Name, *CURLIB

Run priority . . . . . . . . . . > 40 1-99

Time slice . . . . . . . . . . . > 5000 Milliseconds

Eligible for purge . . . . . . . *YES *YES, *NO

Default wait time . . . . . . . 30 Seconds, *NOMAX

Maximum CPU time . . . . . . . . *NOMAX Milliseconds, *NOMAX

10  Installation Guide Transfer CFT IBM i3.3.0

Page 18: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Create a class

Maximum temporary storage . . . *NOMAX Kilobytes, *NOMAX

Maximum threads . . . . . . . . *NOMAX 1-32767, *NOMAX

Text 'description' . . . . . . . > 'Description de la classe CFT/400'

If product performance levels are unacceptable, for example due to batch processing monopolizing the CPU, you may need to modify these default values. In particular you can increase the execution priority by reducing the value set by default.

Adding a routing entry 1.  In the system Objects menu, type 6 and press Enter to validate.

 2.  Define the standard routing entry if you have created a Transfer CFT specific subsystem.

 3.  Enter the name of the job description that you created for the Transfer CFT working environment.

Add Routing Entry (ADDRTGE)

Type choices, press Enter.

Subsystem description . . . . . > CFTSBS Name

Library . . . . . . . . . . . > CFTPROD Name, *LIBL, *CURLIB

Routing entry sequence number . > 9999 1-9999

Comparison data:

Compare value . . . . . . . . > *ANY

Starting position . . . . . . 1-80

Program to call . . . . . . . . > QCMD Name, *RTGDTA

Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB

Class . . . . . . . . . . . . . > CFTCLS Name, *SBSD

Library . . . . . . . . . . . > CFTPROD Name, *LIBL, *CURLIB

Maximum active routing steps . . *NOMAX 0-1000, *NOMAX

Storage pool identifier . . . . 1 1-10

Thread resources affinity:

Group . . . . . . . . . . . . *SYSVAL *SYSVAL, *NOGROUP, *GROUP

Level . . . . . . . . . . . . *NORMAL, *HIGH

Resources affinity group . . . . *NO *NO, *YES

Transfer CFT IBM i3.3.0 Installation Guide  11

Page 19: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

Changing the user profile 1.  In the system Objects menu, type 8 and press Enter to validate.

 2.  Modify the user profile to take into account the selections that you made in previous customization steps.

 3.  Indicate the name of the job description that you created for the Transfer CFT working environment.

Change Profile (CHGPRF)

Type choices, press Enter.

Assistance level . . . . . . . . *SYSVAL *SAME, *SYSVAL, *BASIC...

Current library . . . . . . . . *CRTDFT Name, *SAME, *CRTDFT

Initial program to call . . . . CFGINLPGM Name, *SAME, *NONE

Initial menu . . . . . . . . . . MAIN Name, *SAME, *SIGNOFF

Library . . . . . . . . . . . QSYS Name, *LIBL, *CURLIB

Text 'description' . . . . . . . > 'PROFIL DES UTILISATEURS DE CFT

OS/400'

 

Additional Parameters

Job description . . . . . . . . > CFTJOBD Name, *SAME

Library . . . . . . . . . . . > CFTPROD Name, *LIBL, *CURLIB

12  Installation Guide Transfer CFT IBM i3.3.0

Page 20: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Create a subsystem

Create a subsystem 1.  In the system Objects menu, type 3 and press Enter to validate.

 2.  Specify subsystem information.

Create Subsystem Description (CRTSBSD)

Type choices, press Enter.

Subsystem description . . . . . > CFTSBS Name

Library . . . . . . . . . . . > CFTPROD Name, *CURLIB

Storage pools:

Pool identifier . . . . . . . > 1 1-10

Storage size . . . . . . . . . > 250000 Number, *BASE, *NOSTG...

Activity level . . . . . . . . > 10 Number

+ for more values

Maximum jobs . . . . . . . . . . > *NOMAX 0-1000, *NOMAX

Text 'description' . . . . . . . > 'Description du sous-système

CFT/400'

It is recommended that you set the following parameters to the indicated values:

 l Main private memory pool and size: a minimum of 245MB (250,000 Kbytes)

 l Activity level: 10

 l Maximum number of jobs: *NOMAX (default value)

Adding a job queue 1.  In the system Objects menu, type 4 and press Enter to validate.

 2.  Specify job queue information.

Add Job Queue Entry (ADDJOBQE)

Type choices, press Enter.

Subsystem description . . . . . > CFTSBS Name

Library . . . . . . . . . . . > CFTPROD Name, *LIBL, *CURLIB

Job queue . . . . . . . . . . . > CFTJOBQ Name

Library . . . . . . . . . . . > CFTPROD Name, *LIBL, *CURLIB

Maximum active jobs . . . . . . > *NOMAX 0-1000, *NOMAX

Transfer CFT IBM i3.3.0 Installation Guide  13

Page 21: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

Sequence number . . . . . . . . 10 1-9999

Max active priority 1 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 2 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 3 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 4 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 5 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 6 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 7 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 8 . . . . . *NOMAX 0-99, *NOMAX

Max active priority 9 . . . . . *NOMAX 0-99, *NOMAX

14  Installation Guide Transfer CFT IBM i3.3.0

Page 22: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

TCP/IP requirements

TCP/IP requirementsThis section describes the specific requirements for TCP/IP in a Transfer CFT Transfer CFT IBM i environment.

Interface level usedThe interface is a SOCKET type.

Execution environmentA TCP/IP network must be installed and configured before the Transfer CFT Transfer CFT IBM i product is installed. Use the STRTCP command to start the TCP/IP environment. The configured servers are then started.

Network environment

Local domain and host name 1.  To configure the domain and host names, enter GO CFGTCP.

 2.  In the CFGTCP menu, select the Changes local domain and host names option and modify the local domain and host names for your IBM i. The host name is used in the CFTNET command HOST parameter when the Transfer CFT/400 monitor is configured.

Host tableEach host with which you wish to transfer files must be declared in this table.

To do so, select the WORK WITH TCP/IP HOST TABLE ENTRIES option in the CFGTCP menu.

TCP/IP interfaceEach domain with which you wish to transfer files must be declared in an interface.

To do so, select the WORK WITH TCP/IP INTERFACE option in the CFGTCP menu and add an interface. 

A partner address of 192.1.1.1 and the 255.255.255.0 mask are used to separate the network identifier part (192.1.1) from the host identifier part (1). For a site with the same network identifier, you do not need to configure another network interface.

Transfer CFT IBM i3.3.0 Installation Guide  15

Page 23: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

1  Prerequisites

TCP/IP port restrictionsThe SAPs used in the Transfer CFT configuration commands must be declared as ports for the TCP/IP protocol. They must also be associated with the Transfer CFT user profile.

Note Ports 1 to 1023 are reserved and must not be used by Transfer CFT.

Checking the network configurationThe PING command is used to test the connection with your partner.

To do so, enter the PING command on an Transfer CFT IBM i command line, followed by the name of the host to be tested. The test results are displayed on the message line.

PrecautionsAny incidents detected impact the following:

 l SecurityTo start TCP, you do not need to have a user profile set to *IOSYSCFG, but it may be required for some Transfer CFT configuration commands in the TCP/IP environment: the Transfer CFT IBM i messages are explanatory.

 l Network interface is not started after the ENDTCPIFC commandThe network interface can be started up via the WORK WITH TCP/IP INTERFACE option in the CFGTCP menu, or the STRTCPIFC or NESTAT command if the STRTCP command has already been called.

16  Installation Guide Transfer CFT IBM i3.3.0

Page 24: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Before you startYou require the following before you begin the Transfer CFT installation:

 l Download the ESD file from Axway Support at https://support.axway.com.

 l An FTP client that permits the transfer of files to the IBM i host.

 l To install the Transfer CFT IBM i product you need adequate space, as the file to upload is approximately 280 MB.

Installation and upload overviewTo install Transfer CFT IBM i:

 l Upload and restore the installation files as described in Upload and restore the installation files on page 22.

 l Install Transfer CFT using either the automatic or a customize procedure.

Transfer CFT IBM i3.3.0 Installation Guide  17

Page 25: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Create users and set security rightsThis section describes the user rights procedures that you need to perform before installing Transfer CFT IBM i. Additionally, verify that your operating system and environment requirements are met as described in Transfer environment.

Prior to installation you should:

 l Create a user profile

 l Manage user rights

 l Set up the operating environment

For more information on special authorities, the types of actions a user can perform on a system resource, refer to the IBM Knowledge Center.

User prerequisitesTo install Transfer CFT you require:

 l A user with the *ALLOBJ special authority that installs Transfer CFT. 

 l A standard user named CFT that operates Transfer CFT.

Note You can create another user to operate Transfer CFT, but the CFT user must exist on the IBM i system  to install Transfer CFT. 

Create an installation user with basic rightsIn this example, the CFTINST user installs Transfer CFT. This user must have the following special authorities:

 l *JOBCTL

 l *SPLCTL

 l *ALLOBJ

Example

CRTUSRPRF USRPRF(CFTINST) PASSWORD(CFTINST) PWDEXP(*YES) USRCLS(*USER)

INLPGM(*NONE) INLMNU(MAIN) LMTCPB(*NO) TEXT('*SHARED: MFT Axway

Installer User Profile') SPCAUT(*JOBCTL *SPLCTL *ALLOBJ) PWDEXPITV

(*SYSVAL)

Create a standard user to operate Transfer CFTIn this example, this the user CFT  operates Transfer CFT and has the following special authorities:

18  Installation Guide Transfer CFT IBM i3.3.0

Page 26: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Create users and set security rights

 l *JOBCTL

 l *SPLCTL

Example

CRTUSRPRF USRPRF(CFT) PASSWORD(CFT) PWDEXP(*YES) USRCLS(*USER) INLPGM

(*NONE) INLMNU(MAIN) LMTCPB(*NO) TEXT('*SHARED: MFT Axway CFT Profile')

SPCAUT(*JOBCTL *SPLCTL) PWDEXPITV(*SYSVAL)

Transfer CFT IBM i3.3.0 Installation Guide  19

Page 27: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Set up the operating environment

Using a specific subsystemYou are advised to run Transfer CFT IBM i on a specific subsystem. Therefore, it is recommended that you use the Transfer CFT IBM i screen manager to create the following items:

 l Job description (*JOBD)

 l Subsystem with a private memory pool of 245 MB

 l Standard batch class

For practical reasons, you may consider other configurations:

 l If you foresee activity peaks for Transfer CFT and other applications at the same time, consider working in a shared pool.

 l If Transfer CFT is being used in time slots corresponding to normal activity levels and when no other applications are running, the basic memory pool is sufficient.

Using librariesOnce installed, Transfer CFT uses the program and the CFTPGM samples library, which contains:

 l Programs

 l Examples of source files (CFTSRC file)

 l Additional files restored in the library that are specified during installation

You should create a Transfer CFT program library, and name it CFTPGM to conform to default standards. This library is generally reserved for Transfer CFT. It is recommended that you group the following elements in the production library:

 l Transfer CFT service files

 l Source files customized by the client

 l In general any files defining the Transfer CFT IBM i CFT operating environment

 l Additionally, you can use this library to store temporary transferred data 

The SI_TEMPLIB library and QTEMP libraries are used to manage temporary or working objects, such as:

 l Data queues

 l Data areas

 l ICF files

 l User spaces

20  Installation Guide Transfer CFT IBM i3.3.0

Page 28: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Set up the operating environment

Creating a profile and librariesPerform these operations on your IBM i system:

 1.  Create the Transfer CFT profile as described in Setting up the system and network.

 2.  Create the Transfer CFT libraries. We recommended that you name these libraries CFTPGM and CFTPROD (the default names).

Transfer CFT IBM i3.3.0 Installation Guide  21

Page 29: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Upload and restore the installation filesThis section describes the upload and restore options available for Transfer CFT 3.2.4 for the IBM i platform to perform prior to installation, using FTP and the RSTLIB command.

Before starting a Transfer CFT session, you must add the value *none in the initial program call to call a screen menu directly. Otherwise the session cannot start.

Note CFTPGM is the standard name for the programs library.

Begin the installation process by uploading the Transfer CFT  installation package, in binary mode, to the IBM i system:

 1.  Log in with the CFTINST user.

 2.  Create a temporary library:

CRTLIB CFTTMP

 3.  Create a SAVF file: 

CRTSAVF FILE(CFTTMP/CFT324)

 4.  Upload the installation package to the SAVF in binary mode using FTP:

binary

cd CFTTMP

put Transfer_CFT_os400.bin CFT324

 5.  Restore the SAVF file:

RSTLIB SAVLIB(CFTPG) DEV(*SAVF) SAVF(CFTTMP/CFT324) OPTION

(*NEW) RSTLIB(CFTTMP)

22  Installation Guide Transfer CFT IBM i3.3.0

Page 30: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

Start the installationAs a reminder before starting the installation, Transfer CFT uses three libraries that are named by default: 

 l CFTPGM: Transfer CFT program library  

 l CFTPROD: Transfer CFT production library files 

 l SI_TEMPLIB: Labeled Work (a single library even if there are several Transfer CFTs on the same machine)

Note IFS environment: Transfer CFT also uses the files in the /home/cft/Transfer_CFT/install directory. This directory contains the files needed to use Copilot. Additionally, you can use Transfer CFT utilities such as CFTUTIL, PKIUTIL, etc. from the /home/cft/Transfer_CFT/runtime directory. For more information, please see Manage Transfer CFT using IFS on page 70.

While it is not recommended, you can rename the CFTPGM and CFTPROD libraries. If you do rename these libraries, throughout the rest of this document use those names in place of CFTPGM and CFTPROD. 

When naming libraries, remember that the number 1 is a suffix managed by Transfer CFT and a named environment number. You can use any number up to the number 9, which in turn enables you to manage several Transfer CFTs on the same machine.

Transfer CFT IBM i3.3.0 Installation Guide  23

Page 31: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

About the INSTALL commandThe INSTALL command enables you to install:

 l Transfer CFT binary objects, such as programs, to the Transfer CFT program library

 l Transfer CFT files to production library

 l Transfer CFT IFS files to IFS directory

After uploading the Transfer CFT IBM i CFT33XL file to the target location, in the Transfer CFT profile you must add the CFTINSTEMP library to the library list. In command line execute: 

ADDLIBLE LIB(CFTINSTEMP) POSITION(*FIRST)

Note The Transfer CFT program library and Transfer CFT production library are created if they do not exist prior to performing this procedure.

Executing the INSTALL command  Enter the INSTALL command and press PF4 to display the Transfer CFT IBM i installation screen.

Note Pressing ENTER at this stage performs an install using the default values.

INSTALL CFT (INSTALL)

Install on an independent ASP. . . . . . . '2' 1:Yes / 2:No

Note At the end of your installation, you can use the F9 key to execute the callback command. This command can be used for your next installation or for deployments on Iseries.

24  Installation Guide Transfer CFT IBM i3.3.0

Page 32: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

Use an independent ASP (optionally)

About independent ASPs (IASP)An independent ASP (or independent disk pool) is a collection of disk units that can be brought online or taken offline independent of other system storage, including the system ASP, user ASPs, and other independent ASPs. Independent ASPs are useful both in single and multiple system environments. 

In a single system environment, you can take an independent ASP  offline independent of other ASPs asthe data in the independent ASP is self-contained. This means that all of the necessary system information associated with the independent ASP's data is contained within the independent ASP. You can also bring the independent ASP  online while the system is active (no IPL required). This use of independent ASPs  can be useful, for example if you have large amounts of data that are not needed for normal day-to-day business processing. The independent ASP containing this data can be left offline until it is needed. When large amounts of storage are systematically kept offline, you can shorten processing time for operations such as IPL and reclaim storage.

IASP commandYou can use the following commands to manage IASP:

 l To start or stop an IASP,  use the command:

WRKDEVD

 l To activate an environment, use the command:

SETASPGRP (ex: ‘SETASPGRP ASPGRP(IASP1)’)

 l To disable an environment,  use the command:

SETASPGRP ASPGRP(*NONE)

Use an independent ASP in a Transfer CFT environmentFor Transfer CFT to be able to access the files located on IASP (write or read mode), you must have an available IASP environment. To do so, perform the following steps:

 1.  Connect to your system.

 2.  Start the IASP.

 3.  Use the SETASPGRP command to enable your IASP.

 4.  Use the CFTSTART command to start Transfer CFT.

Transfer CFT IBM i3.3.0 Installation Guide  25

Page 33: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Install Transfer CFT on the IBM i systemThe second stage is to install the product on your IBM i system, using the deployment package:

 1.  Log in with the CFTINST user.

 2.  Install Transfer CFT. The following example installs Transfer CFT  with the Central Governance option:

INSTALL PGMLIB(CFTPGM) PRODLIB(CFTPROD) CFTJOBD(CFTJOBD) CFTJOBQ

(CFTJOBQ) CFTSBSD(CFTSBS) CFTCLS(CFTCLS) PTHINSTALL

('/home/cft/Transfer_CFT/install') PTHRUNTIME('/home/cft/Transfer_

CFT/runtime') COPSRVHST(Iserie.axway.int) COPSRVPRT(1766) COPPRTSSL

(1767) ENCG(1) CGHOST(CG.ptx.axway.int) CGPORT(12553) SHRDSCRT

(Secret01) SHRDSCRT2(Secret01) FULLHOST(Iserie.axway.int) CFTINSTID

(CFTOS400) PORTCOMS(1765) PSITANYSAP(1761) LICKEY(MY_KEY)

 3.  Grant the Transfer CFT user CFT the permission to operate Transfer CFT:

GRTOBJAUT OBJ(CFTPGM/*ALL) OBJTYPE(*ALL) USER(CFT) AUT(*ALL)

GRTOBJAUT OBJ(CFTPROD/*ALL) OBJTYPE(*ALL) USER(CFT) AUT(*ALL)

With QSH: chown -R CFT /home/cft/Transfer_CFT

 4.  Define  the Transfer CFT user CFTas a super user:

CFTUTIL uconfset id=am.passport.superuser, value='CFTINST,CFT'

 5.  Disable the Access Management persistent cache:

CFTUTIL uconfset id=am.passport.persistency.enable, value='No'

 6.  Update the  Transfer CFT user CFT  profile to use the Transfer CFT instance:

CHGUSRPRF USRPRF(CFT) JOBD(CFTPROD/CFTJOBD)

Register with Central Governance 1.  Log in with  the Transfer CFT user CFT.

 2.  Start Copilot.

COPSTART

 3.  Check that the Transfer CFT instance appears in Central Governance.

You can now operate your Transfer CFT instance with the CFT user.

After executing the installation, the following objects are created in the CFTPROD library: 

26  Installation Guide Transfer CFT IBM i3.3.0

Page 34: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

 l Files: CAT, COM, LOG, ALOG, ACCNT, AACCNT

 l System objects: CFTJOBQ, CFTJOBD, CFTSBS, CFTCLS

Create an additional userYou can create an additional user that interacts with the Transfer CFT instance. For example, you may need an additional user related to a dedicated application. In this section, the example user account is APP1.

 1.  Create a user.

 2.  Give the user permission to use Transfer CFT.

 3.  Update the user profile.

 4.  Give the user permission to use Transfer CFT with Central Governance.

About user profiles with additional rightsIt is up to the system administrator to make the decision to create a Transfer CFT-specific user profile. We recommend that you do, if possible, use this type of profile to simplify security management, execution environment generation, and Transfer CFT operations.

Unless you wish to differentiate between several Transfer CFT IBM i instances running concurrently on the same system, you should use the Transfer CFT profile name (USRPRF = CFT). If you decide to use Transfer CFT as a profile, you must create this Transfer CFT profile prior to installing the product.

The profile used to install the product must be in the *SECOFR class.

You can create a Transfer CFT profile using the system administration profile (*SECOFR class) and executing the command:

CRTUSRPRF USRPRF(CFT) USRCLS(*PGMR) CCSID(65535) SPCAUT(*JOBCTL,…)

The program owner profile must always be in the *PGMR class. The special rights assigned by default to the Transfer CFT profile (profile SPCAUT parameter), and belonging to the *PGMR user class (*USRCLS), may not be sufficient. 

Description of rights:

 l *JOBCTL: job control rights

 l *SAVSYS: backup or restore rights

 l *ALLOBJ if QSECURITY = 20 or 30: rights for all objects

 l *IOSYSCFG: this right is mandatory if network objects are created automatically during the 

Transfer CFT IBM i3.3.0 Installation Guide  27

Page 35: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

 l *SERVICE: this right is useful when running the SST tool network trace commands

It is recommended that you have a profile with the following rights:

 l *JOBCTL 

 l *SAVSYS 

 l *IOSYSCFG 

 l *SERVICE

 l *SPLCTL

Additionally, Transfer CFT requires as a minimum the following IBM i rights: 

 l GRTOBJAUT OBJ(CFTPROD/*ALL) OBJTYPE(*ALL) USER(AXMSING) AUT(*ALL)   

 l GRTOBJAUT OBJ(CFTPGM/*ALL) OBJTYPE(*ALL) USER(AXMSING) AUT(*USE)

 l GRTOBJAUT OBJ(CFTPGM/DM3LCK) OBJTYPE(*ALL) USER(AXMSING) AUT(*ALL)

 l GRTOBJAUT OBJ(CFTPGM/LOCKTABLE) OBJTYPE(*FILE) USER(AXMSING) AUT(*ALL)

 l GRTOBJAUT OBJ(CFTPGM/DX25) OBJTYPE(*DTAARA) USER(AXMSING) AUT(*ALL)

 l GRTOBJAUT OBJ(SI_TEMPLIB/*ALL) OBJTYPE(*ALL) USER(AXMSING) AUT(*ALL)

You must give rights *RX for all object created in /home/cft/Transfer_CFT/install directory (default directory)and /home/cft/Transfer_CFT/runtime (default directory). 

The system environment of the user performing the installation procedure is applied by default if there is no Transfer CFT-specific profile applied during installation. The user profile owns the objects created during installation, but not the restored objects such as programs, commands, and so on.

To provide assistance for users, the CHGOWNCFT and GRTOBJCFT commands are supplied with the library and profile name as call parameters. 

Create an APP1 userThe APP1 user has the following special authorities:

 l *JOBCTL

 l *SPLCTL

Example

CRTUSRPRF USRPRF(APP1) PASSWORD(APP1) PWDEXP(*YES) USRCLS(*USER) INLPGM

(*NONE) INLMNU(MAIN) LMTCPB(*NO) TEXT('*SHARED: APP1 Profile') SPCAUT

(*JOBCTL *SPLCTL) PWDEXPITV(*SYSVAL)

28  Installation Guide Transfer CFT IBM i3.3.0

Page 36: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

Grant the APP1 user permissions To avoid being blocked by the execution rights for commands used in Transfer CFT programs, you must assign user rights to the Transfer CFT profile. Enter the following command to assign user rights: 

Grant this user the permission to use Transfer CFT at the system level.

GRTOBJAUT OBJ(CFTPGM/*ALL) OBJTYPE(*ALL) USER(APP1) AUT(*ALL)

GRTOBJAUT OBJ(CFTPROD/*ALL) OBJTYPE(*ALL) USER(APP1) AUT(*ALL)

Manage user rights System managers can use one of several methods to block Transfer CFT usage, as in some settings a system administrator may need to prohibit the general use of Transfer CFT IBM i. 

One way for system administrators to manage users is to assign the right to execute Transfer CFT to any user with a group profile (*GRPPRF). Another is to give the Transfer CFT profile password only to certain users. 

If Transfer CFT is used by several profiles, issues over object rights can occur, possibly affecting product operations. To grant specific authority for an object to a user or group, you may need to use the GRTOBJAUT command.

Additionally, when these programs create a file dynamically they grant all users [USER(*PUBLIC)] the default authorization(AUT(*LIBCRTAUT)

In a live environment, the security manager can modify:

 l Program usage rights

 l User profile usage rights

 l Update rights for Transfer CFT service files (PARM, PART, CAT, COM, and optionally LOG and ACCNT files)

 l Update rights for source members, such as:

 l Source files that can be interpreted (particularly the configuration source file)

 l Source files to be submitted by Transfer CFT at the end of the transfer

The method used to address security issues for specific rights depends on the:

 l Number and diversity of the user profiles concerned by file transfers

 l Required level of data protection, since most constraints when using the product are associated with data confidentiality issues

There are no preset security rules, as Transfer CFT security issues are closely associated with the administration of the system on which Transfer CFT is installed.

Transfer CFT IBM i3.3.0 Installation Guide  29

Page 37: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Update the APP1 profile to use Transfer CFT instance

CHGUSRPRF USRPRF(APP1) JOBD(CFTPROD/CFTJOBD)

Grant the APP1 user Central Governance rightsYou must create a user (for example, APP1) in Central Governance before you can use Transfer CFT in Central Governance. As this user is not a super user,  assign the APP1 user a Transfer CFT role. For example, you can assign it the default role "Transfer CFT Administrator".

Note The credentials required to log on to Copilot server are the system credentials. The password set in Central Governance for APP1 is not used.

You can now connect to the Copilot server using the APP1 user.

30  Installation Guide Transfer CFT IBM i3.3.0

Page 38: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

Manually enable governance This section describes how to  manually modify the Transfer CFT configuration to enable Central Governance connectivity in command line.

Prerequisites 1.  Stop Transfer CFT and Copilot if running.

 2.  Ensure that all UCONF values used to identify a Transfer CFT instance  are defined. These parameters include:

 l cft.full_hostname

 l cft.instance_id

 l cft.instance_group

Use the format:

CFTUTIL uconfset id=cft.instance_id, value=<cft_id>

ProcedureThe manual procedure consists of the following steps, which are detailed below: 

 1.  Set the UCONF parameter values for  Central Governance.

 2.  Enable Central Governance.

 3.  Start Copilot to register.

Set UCONF values

Use  the Central Governance installation values for the following UCONF settings. Transfer CFT uses these values to  identify Central Governance.

 l cg.host

 l cg.port

 l cg.mutual_auth_port

 l cg.shared_secret

Use the format:

CFTUTIL uconfset id=cg.host, value=<host_value>

Transfer CFT IBM i3.3.0 Installation Guide  31

Page 39: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Enable Central Governance

CFTUTIL uconfset id=cg.enable, value=yes

Register

Start the Transfer CFT Copilot to trigger an automatic registration with Central Governance.

You can check in the Central Governance Product List to confirm that the registration was successful.

Enable Sentinel When using Central Governance, the visibility features are managed by Central Governance. Do not modify these parameters when running with Central Governance.

Sentinel configuration parametersThe following table lists the Sentinel parameters in the unified configuration and the corresponding former Sentinel parameter.

UCONF parameter Default Former Sentinel parameter

TRKCNF

sentinel.xfb.enable NO XFB.Sentinel (TRKCNF)

sentinel.xfb.transfer                             ALL XFB.Transfer (TRKCNF)                             

sentinel.xfb.shut                             0                              XFB.Shut (TRKCNF)                             

sentinel.xfb.log                             IEWF XFB.Log (TRKCNF)                             

sentinel.trktname $(cft.runtime_dir)/data/trkapi.buf  

TRKTNAME (TRKCNF)  

sentinel.trksharedfile  No   TRKSHAREDFILE  

sentinel.trklenmsg    TRKLENMSG  

sentinel.trklocmaxtime  300   TRKLOCMAXTIME  

32  Installation Guide Transfer CFT IBM i3.3.0

Page 40: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

UCONF parameter Default Former Sentinel parameter

TRKCNF

sentinel.trktmode  DIFFER  TRKTMODE  

sentinel.trktconnretry  60  TRKTCONNRETRY  

sentinel.trkretrydelay  10  TRKRETRYDELAY  

sentinel.trkretrynb  6  TRKRETRYNB  

sentinel.trkdelay  10  TRKDELAY  

sentinel.trktimeout  60  TRKTIMEOUT  

sentinel.trkproductname  CFT   TRKPRODUCTNAME  

sentinel.trkipaddr  sentinel-server-hostname   TRKIPADDR  

sentinel.trkipport  1761   TRKIPPORT  

sentinel.trk_min_port  5000   TRK_MIN_PORT  

sentinel.trk_max_port  32000  TRK_MAX_PORT  

sentinel.trkipaddr_bkup   TRKIPADDR_BKUP  

sentinel.trkipport_bkup  1761   TRKIPPORT_BKUP  

sentinel.trk_min_port_bkup  5000   TRK_MIN_PORT_BKUP  

sentinel.trk_max_port_bkup  32000   TRK_MAX_PORT_BKUP  

sentinel.trktype  TCP   TRKTYPE  

sentinel.trkgmtdiff  60   TRKGMTDIFF  

sentinel.trktrcfile  $(cft.runtime_dir)/run/sentinel.trc   TRKTRCFILE  

sentinel.trktrace  0   TRKTRACE  

Transfer CFT IBM i3.3.0 Installation Guide  33

Page 41: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

UCONF parameter Default Former Sentinel parameter

TRKCNF

sentinel.xfb.transfer_progress_periodThe frequency in seconds in which Transfer CFT notifies Sentinel   (for both SENDING and RECEIVING states) that a transfer is running.0 = no notification

60  

sentinel.xfb.transfer.send_relay_site_nidfEnables an NIDF on the relay site. This uses an NIDF instead of COMMUT when sending an event to Sentinel using the XFBTransfer object.

No  

For more information on event messages, refer to the Axway Sentinel documentation.

About Transfer CFT heartbeat functionalityWhen the Transfer CFT heartbeat function is activated, it sends the attributes to the Axway Sentinel server via TRKUTIL. The Transfer CFT heartbeat combined with a Status Dashboard allows you to monitor Transfer CFT, providing information on the Transfer CFT status from indicators such as the Transfer CFT state, process activity, CFT product version, Transfer CFT free catalog records, Transfer CFT used catalog records, Transfer CFT catalog maximum records and so on.

For more information on Dashboards and tracked objects, refer to the Transfer CFT 3.2.4 Dashboards User's Guide, and the Axway Sentinel User's Guide.

Sentinel Heartbeat implementation parametersThe following table lists the Heartbeat parameters that you can set in the unified configuration.

Each Transfer CFT environment number n (from 1 to 5) has its own corresponding Heartbeat script. You should check the default names (such as in the production library, jobd, and Transfer CFT file) that are used in the script. 

34  Installation Guide Transfer CFT IBM i3.3.0

Page 42: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the installation

Unified configuration parameter

Default value Description

sentinel.heartbeat.enable  NO Enables sending Heartbeats to the Sentinel Server.

sentinel.heartbeat.periodicity  300 The delay in seconds between sending Heartbeats.  

sentinel.heartbeat.script  CFTPROD/HEARTBEAT Script for executing Heartbeats.

Table 2. Example

uconfset id=sentinel.heartbeat.enable,value=yes

uconfset id=sentinel.heartbeat.periodicity,value=300

uconfset id=sentinel.heartbeat.script,value=CFTPROD/HEARTBEAT

uconfset id=sentinel.trkipaddr,value=serveur.sentinel.address

uconfset id=sentinel.trkipport,value=11277

uconfset id=sentinel.trklocaladdr,value=as400.local.address

Transfer CFT IBM i3.3.0 Installation Guide  35

Page 43: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

About multi-node architectureThis topic describes the Transfer CFT multi-node feature, which provides Horizontal scalability for increased transfer flow capacity. 

A node is a Transfer CFT runtime running on a host. Multiple nodes are called a Transfer CFT cluster, which can run on one host in an IBM i environment. 

PrerequisitesTransfer CFT in multi-node architecture requires:

 l That one key per node is licensed for the cluster option. 

Concepts l Transfer CFT provides one node manager that monitors every node and checks that its nodes are active. If a node goes down, the node manager detects the inactivity and takes over that node's activity. 

 l For multiple nodes to be able to access the same files, using the same set configuration, the system requires the use of a shared file system. The shared disk provides communication, configuration, partners, data flows, internal datafiles and nodes. The shared data includes parameter files and configuration settings.

Service descriptions

CopilotCopilot operates two services, the node manager and the UI server. 

Node managerThe node manager monitors all nodes that are part of the Transfer CFT multi-node environment. The monitoring mechanism is based on locks provided by the  resource queuing system.

Typically, when a node is not running correctly, the node manager tries to start it locally.

CFTCOM dispatcherFor outgoing calls, you can set the CFTCOM dispatcher to use either a round robin load balancing, or define a one-to-one relationship between a partner and a node. A one-to-one relationship ensures that for any given partner the transfers are kept in the correct chronological order. In the unified 

36  Installation Guide Transfer CFT IBM i3.3.0

Page 44: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

About multi-node architecture

configuration, set the variable:

cft.multi_node.cftcom.dispatcher_policy

 l Round robin: round_robin (default)

 l One-to-one: node_affinity

Transfer CFT filesAll runtime data are stored on a shared file system.

The following internal datafiles are shared between nodes:

 l Parameter internal datafile (CFTPARM)

 l Partners internal datafile (CFTPART)

 l PKI base (CFTPKI)

 l Main communication media file (CFTCOM)

 l Unified Configuration (UCONF)

The following internal datafiles are node specific, and the filename is flagged by the node identifier:

 l Catalog (..CATALOG.N00,..CATALOG.N01,...)

 l Communication media file (..COM.N00, ..COM.N01,...)

 l Log files (..LOG1.N00, ..LOG2.N00, ..LOG1.N01, ..LOG2.N01, ,...)

 l Account file (..ACCNT1.N00, ..ACCNT2.N00, ..ACCNT1.N01, ..ACCNT2.N01 ,...)

Note When using multi-node architecture, the allocated space in the catalog file is 10% greater than when working in a standalone Transfer CFT.

Recovery

Node recovery If the node manager detects a failure the node is restarted, and it completes all transfer requests that were active when the failure occurred.

Transfer recovery When a node receives an incoming request, be that a transfer receive, restart, acknowledgement or negative acknowledgement, if the corresponding transfer record cannot be found in the node's own catalog, the node requests the transfer record from other nodes through the CFTPRX task. 

Possible scenarios include:

Transfer CFT IBM i3.3.0 Installation Guide  37

Page 45: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

 l If another node has the catalog record, the node retrieves it and performs the transfer.

 l If no nodes have the record, an error is returned.

 l If any one of the nodes does not respond, the requesting node continues to retry all nodes until  the session's timeout. Once the timeout is reached, the node ends the connection. After this, the remote partner retries the request according to its retry parameters.

In the case of node failure during the transfer recovery process, the catalog record is locked in both catalogs until both nodes are available for recovery.

Limitations Additionally note the following restrictions:

 l There is only one communication media and must be a media FILE.

 l Transfer CFT mailbox services are not supported.

 l The only network is TCP/IP.

 l The use of the console interface commands can apply only to one specific node.

 l Bandwidth control is calculated by node.

 l Accounting statistics are generated by node.

 l Duplicate file detection is not supported.

38  Installation Guide Transfer CFT IBM i3.3.0

Page 46: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

About multi-node architecture

Procedure overviewInstalling Transfer CFT

If you have not done so already, begin by performing a standard Transfer CFT installation. 

After installing

After installing Transfer CFT, you must customize this Transfer CFT from a standard standalone installation to a multi-node enabled Transfer CFT. 

Transfer CFT IBM i3.3.0 Installation Guide  39

Page 47: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Multi-node unified configuration parametersThis topic presents the multi-node uconf parameters and their default values. The column Modify indicates a strong recommendation that you should not modify this value if No is indicated. 

Parameters Description Default Values Modify

cft.multi_node.enable Enable/disable the multi-node feature No Yes, No Yes

cft.multi_node.max Maximum number of nodes 16 integer from 0 to 

16  No

cft.multi_node.cftcom.dispatcher_policy

Specify the dispatching policy  

 l round_robin: Random dispatching across all nodes occurs.

 l node_affinity: Creates a one to one link between a partner and a node. Transfer requests for a given partner will always be performed by the same node. 

round_robinround_robin, node_affinity

Yes

cft.multi_node.sharedidt.fname

Shared file for global IDT calculation in multi-node

$(cft.runtime_dir)/data/cftsidt fname Yes

cft.multi_node.sharedidt.enable

Use global IDT calculation method No Yes, No Yes

cft.multi_node.transfer_recovery_timeout

Timeout in seconds for transfer recovery process (seconds)

30 integer Yes

cft.multi_node.transfer_recovery_retry_delay

Delay in seconds for transfer recovery retry (seconds)

20 integer Yes

cft.multi_node.connection_retry_delay

Delay in seconds for connection retry between nodes (seconds)

10 integer Yes

cft.multi_node.hostnamesList of hosts which handle the multi-node architecture

  list No

cft.multi_node.hostnames.<hostname>.host

Address (FQDN or IP address) of the host   string Yes

cft.multi_node.hostnames.<hostname>.pid

Process ID of Copilot  in multi-node     No

40  Installation Guide Transfer CFT IBM i3.3.0

Page 48: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

About multi-node architecture

Parameters Description Default Values Modify

cft.multi_node.hostnames.<hostname>.state

Copilot  status in multi-node STOPPED

INITIALIZING, STARTING, RUNNING, STOPPING, STOPPED, ERROR

No

cft.multi_node.hostnames.<hostname>.copui_pid

Process ID of UI server (copui) in multi-node     No

cft.multi_node.hostnames.<hostname>.copui_client_socket

Windows socket passing for UI server (copui) in multi-node

  integer No

cft.multi_node.hostnames.<hostname>.copui_notification_port

Notification port for UI server (copui) in multi-node

  integer No

cft.multi_node.nodes Number of nodes 2integer from 2 to $(cft.multi_node.max)

No

cft.multi_node.nodes.<node_id>.nodestate Node status DISABLED

DISABLED, ENABLED_STOPPED, ENABLED_STARTED

No

cft.multi_node.nodes.<node_id>.state Transfer CFT status STOPPED

INITIALIZING, STARTING, RUNNING, STOPPING, STOPPED, ERROR

No

cft.multi_node.nodes.<node_id>.pid

CFTMAIN process ID   integer No

cft.multi_node.nodes.<node_id>.hostname

Hostname of the server where the node is running on

  string No

cft.multi_node.nodes.<node_id>.host

Host address of the server where the node is running on.

  string No

cft.multi_node.nodes.<node_id>.prx_port

Internal node listening port    integer No

cft.multi_node.nodes.<node_id>.disabling

Flag set when Transfer CFT is disabling No Yes, No No

Transfer CFT IBM i3.3.0 Installation Guide  41

Page 49: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Managing multi-nodeThis section describes how to set up and manage your multi-node environment. 

Starting the Transfer CFT cluster

Start the node managercopstart

Start all nodesSubmit the command:

cftmn start

Stopping the Transfer CFT cluster

Stop all nodesSubmit the command on IBM i: cftmn stop

Stop the node managerSubmit the command on IBM i: copstop

Add a node to the Transfer CFT clusterIn this example the Transfer CFT cluster accounts at the beginning two nodes, node 0 and node 1.

Add a nodeExecute the following command to add a new node: cftmn add_node

The node 2 is created. The cluster is composed of three nodes: node 0, node 1 and node 2. All associated files associated with node 2 are initialized and its node state is set to DISABLED.

Note When adding a node, you must add the corresponding new license for that node in a  license-key file.  

42  Installation Guide Transfer CFT IBM i3.3.0

Page 50: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Enable a nodeOnce the new node has been added, you can now enable it using the command: cftmn action(enable_node) node(2)

Start a nodeThe node 2 can be started using the command: cftmn action(start) node(2)

Removing a node from the Transfer CFT clusterNote Only the last node can be removed.

Disable the last nodeYou must fence the last node before removing it, as follows.

Enter: cftmn action(disable_node) node(2)

The node runs as long as its catalog is not empty. Once the catalog is empty, the node state is set to DISABLED and the node stops automatically.

Remove the last nodeAfter fencing and stopping the last node, you can remove it.  

Enter: cftmn action(remove_node) node(2)

Working with files and codingThe topics in this section describe parameters with IBM i specific functioning, as well as parameter mapping and configuration examples when applicable.

Transfer CFT IBM i3.3.0 Installation Guide  43

Page 51: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Conversion tables This section describes how to use a conversion table in Transfer CFT Transfer CFT IBM i in the following sections:

 l Using a conversion table

 l Configuration sample

44  Installation Guide Transfer CFT IBM i3.3.0

Page 52: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Using a conversion table

Using conversion tablesDuring Transfer CFT operations conversion problems may occur when:

 l A file to be transferred contains various special characters:       |, !, \, ̀ , #, ~, [, ], ̂ , {, }, /, $ and £

 l The transfer is performed between two heterogeneous systems with different character sets (CCSID) and the default conversion fails.

 l The transfer is performed between international sites.

Default values

The default EBCDIC character set used by Transfer CFT has code 297 (EBCDIC France).

The default ASCII character set used by Transfer CFT is not fully compatible with code 850 (IBM multilingual personal computer). For more information refer to the Transfer CFT User Guide.

Consequently, two files supplied in the production library are used to enter and create a conversion table in Transfer CFT:

 l TABEBAS: file to be used to convert EBCDIC into ASCII (generally for send operations)

 l TABASEB: file to be used to convert ASCII into EBCDIC (generally for receive operations)

These two files can be modified by DFU (Option 18 in PDM - Member Management).

Creating the conversion table

To create the actual conversion table, you must run the make_tcd.c utility program after modifying the characters at fault: call make_tcd.c parm('CFTPROD/tabaseb')

The CFTPROD/tabaseb.x binary file is created: it constitutes the conversion table to be specified in the Transfer CFT configuration. The same applies to tabebas.x.

Transfer CFT IBM i3.3.0 Installation Guide  45

Page 53: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Configuration sampleThe following is a full Transfer CFT Transfer CFT IBM i configuration sample for a Windows system, which is a typical and frequent scenario.

Transfer CFT IBM i configuration

CFTXLATE MODE=REPLACE,

ID=TABASEB,

DIRECT=RECV,

FNAME=CFTPROD/TABASEB.X

CFTXLATE MODE=REPLACE,

ID=TABEBAS,

DIRECT=SEND,

FNAME=CFTPROD/TABEBAS.X

CFTSEND MODE=REPLACE, ID=……..,

XLATE=TABEBAS,

…………………….

CFTRECV MODE=REPLACE, ID=………,

XLATE=TABASEB,

…………………….

Transfer CFT WIN/NT configuration

============

cftrecv id = …………,

fcode = binary, /* to avoid needing conversion */

…………………

cftsend id = …………,

fcode = binary, /* to avoid needing conversion */

………………….

46  Installation Guide Transfer CFT IBM i3.3.0

Page 54: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Extended character set mappingCharacter transcoding defines how data are encoded during the transfer process.  This is important when transferring files that do not have the same coding requirements on the sending and receiving systems. See the section Character set transcoding in the Transfer CFT User Guide for more information.

NCHARSET and FCHARSET parameter mappingThe following table shows the mapping for the IBM i (OS/400) platform when using the NCHARSET and FCHARSET parameters.

CFT_ charset IBM i

CFT_UTF-8  01208

CFT_UTF-16 01204

CFT_UTF-16LE 01202

CFT_UTF-16BE 01200

CFT_UTF-32 01236

CFT_UTF-32BE 01232

CFT_UCS-2 N/A

CFT_CP850 00850

CFT_BIG5 00947

CFT_ISO8859-1 00819

CFT_ISO8859-15 00923

CFT_EBCDIC-FR 00297

Transfer CFT IBM i3.3.0 Installation Guide  47

Page 55: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

About Transfer CFT file typesThis section describes the types of files that can be used:

 l In a CFTRECV command, according to the types of files to be received on an IBM i system

 l In a CFTSEND command according to the type of data to be sent

 l As backup files

48  Installation Guide Transfer CFT IBM i3.3.0

Page 56: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Receive mode configuration for all protocols

Configuring the receive modeThe following table lists the different types of files that can be received on an IBM i system.

FTYPE FRECFM File Does Not Exist PF-DTAAdd Member

PF-SRCAdd Member

SAVFOverwrite

'  ' '  ''F''V'

PF-DTAPF-DTAPF-DTA (2)

(2) (1)(1)(1)

SAVFSAVFSAVF

'D' '  ''F''V'

PF-DTAPF-DTAPF-DTA (2)

(2) (1)(1)(1)

SAVFSAVFSAVF

'S' '  ''F''V'

PF-SRCPF-SRCPF-SRC

(2)   IncorrectIncorrectIncorrect

'E' '  ''F''V'

PF-SRC (1)PF-SRC (1)PF-SRC (1)

(2) (1)(1)(1)

IncorrectIncorrectIncorrect

'Z' '  ''F''V'

SAVFSAVFSAVF

IncorrectIncorrectIncorrect

IncorrectIncorrectIncorrect

SAVFSAVFSAVF

Key

All records in a file are written unchanged, except in the following cases:

 l (1) Adds 12 check bytes (date / sequence number)Physical record length = logical length + 12

 l (2) Adds five header bytes in a variable record indicating the length of useful dataPhysical length = maximum logical length + 5

Use explicit values for the FTYPE and FRECFM, depending on the properties required for the file to be received.

A space between single quotes ('  ') means that a parameter is omitted from the CFTRECV command. Blank cells in the table indicate that the type of the existing file remains unchanged.

Transfer CFT IBM i3.3.0 Installation Guide  49

Page 57: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Determining corresponding valuesImagine, for example, that you want to receive text-type data from another system in a source file that does not yet exist, by adding check bytes.

As the 'S' type is only significant between two IBM i systems, select 'E' (no time stamping or line numbering).

The procedure is:

 1.  Select the File Does Not Exist column.

 2.  Locate the cell containing the:

 l PF-SRC (source file)

 l "(1) (addition of check bytes)

The FTYPE and FRECFM values opposite the selected cell are the values to be used (in this example, 'E' and '  ' or 'E' and 'F').

The 'E' and 'V' options are used for:

 l The IBM i system is used as an intermediate site.

 l The user of the file on the IBM i system needs to know the exact record size.

50  Installation Guide Transfer CFT IBM i3.3.0

Page 58: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Send mode with the PeSIT CFT profileThe following table lists the different types of files that can be used according to the type of data to be sent.

FTYPE FRECFM PF-DTAFixed

PF-DTAVariable

PF-SRC SAVF

'  ' '  ''F''V'

  (2) (2)

..........(1)          (1)          (1)

 

'D' '  ''F''V'

  2) (2)

.........(1)          (1)          (1)

SAVFSAVFSAVF

'S' '  ''F''V'

  (2) STDb IncorrectIncorrectIncorrect

'E' '  ''F''V'

  2) (2)

(1)(1)(1)

IncorrectIncorrectIncorrect

'Z' '  ''F''V'

IncorrectIncorrectIncorrect

IncorrectIncorrectIncorrect

IncorrectIncorrectIncorrect

 

KeyAll records in the file are sent unchanged, except in the following cases:

 l (1): truncating of the 12 check bytes (date / sequence number), only data that can be edited is sentLogical record length = physical length - 12

 l (2): truncating of the five header bytes in the variable record, only the useful data, the length of which is indicated in the record header (five bytes), is sentLogical record length = physical length - 5

The recommended values for the FTYPE / NTYPE and FRECFM / NRECFM parameters are:

 l STDa: case of a PF-SRC file with check byte filtering

 l STDb: case of a PF-SRC file without check byte filtering

Empty cells indicate that the data in the file is sent unchanged.A space between single quotes ('  ') means that the parameter is omitted.

Transfer CFT IBM i3.3.0 Installation Guide  51

Page 59: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Backup files

OverviewThe records in this type of file (SAVF) have a specific format. They contain backed up, sequencing and parity data controlled byTransfer CFT IBM i. SAVF files can generally only be used on Transfer CFT IBM i systems. Consequently, backup files are predominantly transferred between two Transfer CFT IBM i partners.

Another system can be used as an intermediate partner, in which it must process the SAVF file as a sequential file with a fixed format and a length of 528 (bytes).

Implementing SAVF file supportThe value Z for the CFTSEND / CFTRECV command FTYPE parameter designates SAVF files. It is mandatory in receive mode (CFTRECV) and optional in send mode (CFTSEND).

The only variable property of an SAVF file is its allocation size in Kilobytes (FSPACE parameter). FSPACE must be between 1 and 65535.

The configuration of the other properties (FORG, FRECFM, FLRECL and so on) is ignored. Consequently, they do not need to be specified in the CFTSEND / CFTRECV commands. However, if FLRECL is specified, it must be set to 528 (bytes).

The SAVF file access method, implemented in Transfer CFT Transfer CFT IBM i, does not support synchronization points in write mode. This mechanism is however supported in read mode. Consequently, a SAVF file transfer with a receiver Transfer CFT IBM i system will fail during a restart (abort on the receiver side). If the file is sent to a non-Transfer CFT IBM i (intermediate) system, resynchronization (restart points) can be performed in read mode with the sender Transfer CFT Transfer CFT IBM i.

Using spool filesIn addition to the possibilities available in the SNDCFTSPLF interactive command (see OS-Integrated Commands), spool files can be used in batch mode or in the Transfer CFT configuration.

The syntax is as follows:

SEND FNAME = Spool file/File n°/Job/Job n°, PART ...

Example:

SEND FNAME = QPRINT/2/CFTLOG/074556, IDF = SPLF, PART ...

You can transfer spool files from an IBM i system to any other system.The receive file is a fixed format sequential file. To use it as a spool file on a receiver IBM i system, you can add the commands in the following example to a receive procedure:

OVRPRTF FILE(QPRINT) CTLCHAR(*FCFC)CPYF FROM FILE(CFTPROD/R_SPLF) TO FILE (QPRINT)

52  Installation Guide Transfer CFT IBM i3.3.0

Page 60: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

The Qprint file is an exact copy of the initial spool file.

Integrated File System (IFS)This section describes how to use the IFS and includes:

 l Using the IFS

 l IFS and the Copilot (UI)

 l IFS access error codes

Transfer CFT IBM i3.3.0 Installation Guide  53

Page 61: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Integrated File SystemThis topic describes the Integrated File System, IFS, functions available in Transfer CFT Transfer CFT IBM i.

IFS overviewThe IFS provides a common interface to another system on the IBM i. After installing Transfer CFTTransfer CFT IBM i you can:

 l Transfer IFS files

 l Receive and store IFS files

 l Copy IFS files to a native Transfer CFT IBM i system and vice versa (using CFTUTIL COPYFILE)

Naming conventions

Respect the following naming conventions:

 l The file name must be prefixed by the slash character /

 o For example: /home/filename

 l You cannot replace environmental variables in the file name

 o For example: $HOME/filename is not a recognized filename

 l You cannot precede filenames by a relative path

 o For example: ../filename is not a recognized filename

Encoding IFS data

IFS file data can be in an ASCII, EBCDIC, or BINARY format. The CCSID, Code Character Set Identifier, associated with the file determines the encoding for the data.

 l Transfer CFT can read and write IFS files in these three formats: ASCII, EBCDIC, or BINARY. When using the ASCII or EBCDIC formats, the data translation for a Transfer CFT transfer, if necessary, is managed by the Transfer CFT translation tables (CFTXLATE).

 l When Transfer CFT receives an IFS file, the CCSID for the file is set by default. This identifier is set to the Transfer CFT Transfer CFT IBM i job CCSID value.

 l The CFTRECV (or RECV) command FCODE=ASCII parameter creates an ASCII file with an associated CCSID code value of 819 (ISO 8859-1 common use default Internet code).

IFS file rights and authorizations

In an Transfer CFT IBM i environment, files are subject to two types of control, data authorities and object authorities.

By default the Transfer CFT users and other general users are given the following:

54  Installation Guide Transfer CFT IBM i3.3.0

Page 62: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

 l The RWX options for data authority

 l The OBJMGT, OBJEXIST, OBJALTER and OBJREF options for object authority

The minimum IFS data authorities required to perform transfers with any user are:

 l RX: readable and executable permission for any object in the IFS directory

 l RWX: readable, writable and executable permission for any object in the IFS directory

IFS file parametersThis section describes the CFTSEND (SEND) and CFTRECV (RECV) parameters for IFS files.

FRECFM

The FRECFM parameter can have one of the following format values:

 l F: fixed

 l V: variable

 l U: undefined

If this parameter is not defined, the default value U is used.

Sending:

 l In fixed format (FRECFM=F), the file data is read and saved line by line (the line delimiter is a ‘carriage return’)

 l If the length of the save exceeds the length defined by the FLRECL parameter, the file data is not truncated. Instead, the transfer is interrupted by an error.

 l If the length of a save is less than the length defined by the FLRECL parameter, the file save is padded with blank characters.

 l In variable format (FRECFM=V), the file data is read and saved line by line (the line delimiter is a ‘carriage return’)

 l The saved or received data are neither truncated nor padded. The maximum save size, the FLRECL parameter, must be larger than or equal to the save maximum.

 l In undefined format (FRECFM=U), the file data is read in blocks, and respects carriage return characters. The size of this block is defined by the FLRECL parameter.

FTYPE

This parameter does not impact the local IFS file management. 

FLRECL

If this parameter is not defined, the default value of 1024 is used.

Sending:

Transfer CFT IBM i3.3.0 Installation Guide  55

Page 63: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

 l In fixed format (FRECFM=F), this parameter must be defined and cannot be less than the maximum save size.

 l In variable format (FRECFM=V), this parameter must be defined if the save length exceeds the default value of 1024.

 l In undefined format (FRECFM=U), this parameter increases the default value 1024 to enable you to transfer larger blocks of data.

FCODE

The FCODE parameter can have one of the three values: EBCDIC, ASCII, or BINARY.

The default value is EBCDIC.

Receiving:

FCODE = ASCII

This enables you to create a file with the code CCSID 819 (ISO 8859-1 Common use default Internet code).

Sending:

FCODE=ASCII and FRECFM=F

These two parameters pad records, when necessary, with “blank” ASCII characters (instead of blank EBCDIC characters).

Example

The example shows the Transfer CFT parameter definition for an IFS file transfer that uses binary format.

FNAME and WFNAME

You can use a temporary file name, WFNAME, for an IFS type file, but the final file name, FNAME, must also be an IFS type file. This means that you cannot rename a temporary IFS file as a native IBM i type, and vice versa. Additionally, note the following parameter conventions:

 l You can use Transfer CFT symbolic variables in IFS file names, but not system environmental variables.

 l IFS file names must begin with a slash ‘/’.

 l When sending, IFS file names are not case sensitive.

 l When receiving, file names are created in upper case by default. If you want to keep the original file name case, you must protect the file name by placing it between quotation marks, for example “filename”.

Note You cannot use an IFS file name in SUBMIT procedure parameters. For example, CFTRECV MODE=REPLACE, ID=IDFDEFT,EXEC=/home/axkhuat/script/txt is not valid.

56  Installation Guide Transfer CFT IBM i3.3.0

Page 64: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

Sending a group of IFS files

Send using a generic name

This section describes how to send a group of files using a send command where there is one transfer per file.

When defining the filename, you must put a <file-symb> character (system-specific) before the FNAME parameter value. Transfer CFT IBM i environments use the ‘#’ and ‘£’ symbols.

Use one of the following commands to send a group of files using a generic name:

SEND FNAME=#path_name/wildcards

Or:

CFTSEND FNAME=#path_name/wildcards

The FNAME parameter is set to a generic name that includes wildcard characters. In this type of send, only the selected files are sent.

A receiving Transfer CFT can specify the name of each file received via the symbolic variables:

 l ?FPATH the file path of the sending file, and

 l ?FROOT the file name of the sending file

Example

 l CFTSEND 

FNAME = “#/home/send/FIC*.*”, FRECVFM = V

 l CFTRECV 

FNAME = “/home/recv/?FROOT”,

FRECVFM = V

Send using an IFS file that contains a list of files

These rules apply to the structure of the file containing a list of files:

 l A record can contain only one file name

 l Each file name must be listed in the first column

 l The file names must be written in EBCDIC

Example

Enter:

CFTSEND FNAME = “#/home/send/FICLIST”, FRECVFM = V

If the file FICLIST contains the following lists:

Transfer CFT IBM i3.3.0 Installation Guide  57

Page 65: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

 l /home/send/FIC1

 l /home/send/FIC2

 l /home/send/FIC3

Then the files FIC1, FIC2 and FIC3 are sent.

CFTUTIL COPYFILE commandThe CFTUTIL COPYFILE command enables you to copy, with compression and translation, an IFS file to another IFS file, or to a native Transfer CFT IBM i file system and vice versa.

The specific parameters include IRECFM, ORECFM, ILRECL and OLRECL. The same rules and constraints apply as with the CFTSEND and CFTRECV commands. 

Use the same IFS file naming conventions for the IFNAME and OFNAME parameters as described in the FNAME parameter of the CFTSEND and CFTRECV commands.

58  Installation Guide Transfer CFT IBM i3.3.0

Page 66: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Working with files and coding

IFS and the Transfer CFT Copilot UIThis section describes the Copilot UI in a Transfer CFT IBM i environment.

Configuration fileThis section describes how to add new values to the COPCONF file. 

You can add a list of IFS directories in the [ROOTDIR] section of the COPCONF file. Then from the Transfer CFT UI you can visualize and select IFS files that are contained in these directories.

Example

[ROOTDIRS]

; List of root directories used to limit remote file access

; All parameters related to root directories are dynamic

RootList=root1 root2

root1=/home/send

root2=/home/recv

File rights and authorizationsThe Transfer CFT user object rights (Object Authorities) are defined in “*ALLOBJ”. You can view, but not modify, these files in the list of IFS directories in the Transfer CFT UI.

Transfer CFT IBM i3.3.0 Installation Guide  59

Page 67: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Transfer CFT IBM i utilitiesThis section describes basic Transfer CFT operating procedures, and provides advice for using Transfer CFT in an IBM i environment. Topics include:

 l Using the Menu bar

 l Starting the Transfer CFT Transfer CFT IBM i Manager

 l Purging residual Transfer CFT objects

 l Programming interface applications

 l Using CFTUTIL Transfer CFT IBM i specific commands

 l Using the support tool

In this document, the terms Transfer CFT OS/400 and Transfer CFT IBM i  may be used interchangeably.

60  Installation Guide Transfer CFT IBM i3.3.0

Page 68: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Transfer CFT IBM iutilities

Using the Menu barIn addition to the described functions, the menu bar provides features that can be used during product operations, such as setting the network traces, and submitting product and OS commands.

The Menu bar is comprised of the options: 

 l Job manager 

 l Network manager 

 l Assistant 

 l Options 

 l About

To select an option, position the cursor on the appropriate menu in the bar and click to select. Some of these menus include sub-menus.

ExampleSelect 2 Network manager, and then select 10 Start communications trace. The Network manager screen  is displayed. 

Purging residual Transfer CFT objectsThe BACKGROUND job that purges the Transfer CFT SI_TEMPLIB working library is submitted each time you execute the CFTSTART or CFTSTOP command (which starts and stops the Transfer CFT product). If you use the CFTUTIL command, the job that purges is not  executed.

The BACKGROUND_C job ends after completing the purge. A spool file is used to obtain information on any objects that may not have been deleted, generally due to access right issues. 

You must manually purge any objects generating an error so that the Transfer CFT working library is not overloaded with unwanted objects. Overloading the library has an indirect negative impact on product performance levels.

The SI_TEMPLIB library contains both resident objects and temporary objects that may be purged. You can recognize temporary objects because they have a creator job number suffix.

If a Transfer CFT instance is executing on an IBM i (OS/400) system, do not use the  CLRLIB command to clean the SI_TEMPLIB library. Note that this will cause the product to stop!

The BACKGROUND job uses the following two parameters:

 l PARAM1: O (execute only once) or F (execute loop)

 l PARAM2: CFT (cleans all files related to Transfer CFT processes) or COPILOT (cleans all files related to Copilot processes)

Transfer CFT IBM i3.3.0 Installation Guide  61

Page 69: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

Using CFTUTIL Transfer CFT IBM i specific commands

Line-mode commandsThe Transfer CFT utility CFTUTIL can accept line-mode commands. Enter the command at the CFTUTIL > prompt and press ENTER to validate. To exit CFTUTIL, enter the /end command.

Examples

 l In an Transfer CFT IBM i command line, enter the command CFTUTIL and press ENTER.

Enter the selection or command at the prompt.

> CFTUTIL

 l Enter the command LISTCAT and press ENTER to confirm.

1:Input :

> LISTCAT

 l Enter the command /end and press ENTER to exit CFTUTIL.

1:Input :

> /END

Files and individual parametersCFTUTIL can accept commands passed either as individual parameters or in a command file.

Command passed as a parameterThe command line is passed as a CFTUTIL parameter using the following syntax:

CFTUTIL PARAM(‘command’ ‘parameter=value, parameter=value,..’)

Examples

CFTUTIL PARAM('LISTCAT’ ‘TYPE=ALL')

CFTUTIL PARAM('LISTCAT’ ‘CONTENT=DEBUG,DIRECT=SEND')

CFTUTIL PARAM('SEND’ ‘PART=LOOP,IDF=TEST')

CFTUTIL PARAM('LISTPARM’ ‘TYPE=RECV')

62  Installation Guide Transfer CFT IBM i3.3.0

Page 70: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Transfer CFT IBM iutilities

File passed as a parameterThe following command runs the CFTUTIL utility, which reads the commands to be executed in the scen.cft file and displays the results.

Example

CFTUTIL PARAM('#CFTPROD/UTIN(SCRIPT)')

Transfer CFT IBM i3.3.0 Installation Guide  63

Page 71: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

2  Installation

64  Installation Guide Transfer CFT IBM i3.3.0

Page 72: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Overview of Transfer CFT in productionThis chapter describes how to operate Transfer CFT in the sections:

 l Predefined commands

 l CFTUTIL commands

 l Source files interpretation

 l Start/stop the UI server

 l Run Transfer CFT jobs:

 o Query Transfer CFT messages

 o Start Transfer CFT

 o Submit a transfer command

 l Transfer CFT shutdown

Manage commandsThis section describes all of the command available to manage your Transfer CFT product.

Standard commands Command Comment

CFTSTART Start Transfer CFT

CFTSTOP Stop Transfer CFT

COPSTART Start the UI server

COPSTOP Stop the UI server

Transfer CFT IBM i3.3.0 Installation Guide  65

Page 73: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Command Comment

CFTMN This is the procedure to manage Transfer CFT and to configure multi-node. Add  the following action(s) to manage your product:

 l START

 l STOP 

 l RESTART 

 l ADD_NODE 

 l REMOVE_NODE 

 l ADD_HOST 

 l REMOVE_HOST 

 l REMOVE_NODE 

 l ENABLE_NODE 

 l DISABLE_NODE Note CFTMN is the equivalent of cft script for UNIX or  

Windows.

Deprecated commandsReplace this command... With the new command...

SHUT CFTSTOP + COPSTOPCFTMGSBM CFTSTARTSTARTCOPB COPSTARTCOPSMNG  COPSTARTCOPSTOPM COPSTOPSTOPCOPL COPSTOPBACKGROUND_C BACKGROUNDSNDCFTF  CFTUTIL (See Example 1)SNDCFTSPLF CFTUTIL (See Example 2)

Example 1

Send a member:

CFTUTIL send PART=<PART>, IDF=<IDF>, FNAME=&LIB/&FILE(&MBR)

Example 2

Send a spool file:

CFTUTIL send PART=<PART>, IDF=<IDF>, FNAME=&FILE/&SPLNBR/&WORK/&JOBNBR

 

66  Installation Guide Transfer CFT IBM i3.3.0

Page 74: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Starting and stopping the Copilot server

Starting and stopping the Copilot serverThis section explains how to:

 l Start the Copilot server on page 67

 l Stop the Copilot server on page 67

 l Configure the Copilot server on page 68

 l Starting the Copilot client on page 70

Start the Copilot serverAccess the Common Transfer CFT commands menu and navigate to the Start the Copilot server option. 

Alternatively, use the COPSTART command or STARTCOPB procedure. 

Example 1

Enter the command:

COPSTART

Example 2

Execute the procedure:

CALL PGM(STARTCOPB)

Stop the Copilot serverAccess the Common Transfer CFT commands menu and navigate to the Stop Copilot option. 

Only the server waiting for a connection is stopped. Other servers that users have logged on to are shut down when the user logs off, or after a network timeout.

Alternatively, use the COPSTOP command or STOPCOPL procedure. 

Example 1

Execute the command:

COPSTOP

Example 2

Execute the procedure:

Transfer CFT IBM i3.3.0 Installation Guide  67

Page 75: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

CALL PGM(STOPCOPL)

Configure the Copilot serverUse the UCONFSET commands to modify the configuration if you need to modify the Copilot server .

68  Installation Guide Transfer CFT IBM i3.3.0

Page 76: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Starting and stopping the Copilot server

Start and stop Copilot

Start the Copilot serverTo start the Copilot server:

 1.  Access the Transfer CFT Main Menu screen. In the Main Menu enter the command cft and press Enter to open the Manager Menu.

 2.  Select option 2 Start COPILOT. The Copilot server menu is displayed.

Tip Alternatively, use the COPSTART command or STARTCOPB procedure. 

Example 1

COPSTART

Example 2

Execute the procedure as follows.

CALL PGM(STARTCOPB)

Stop the Copilot serverTo stop the Copilot server:

 1.  Access the CFT Main menu.

 2.  Select option 3 Stop COPILOT.Only the server waiting for a connection is stopped. Other servers that users have logged onto are shut down when the user logs off, or after a network timeout.

Tip Alternatively, use the COPSTOP command or STOPCOPL procedure. 

Example 1

Execute the command.

COPSTOP

Example 2

Execute the procedure as follows.

CALL PGM(STOPCOPL)

Configure the Copilot serverUse the UCONFSET commands to modify the configuration if you need to modify the Copilot server .

Transfer CFT IBM i3.3.0 Installation Guide  69

Page 77: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Starting the Copilot client 1.  On the client workstation, open a browser window and enter the URL address for the Copilot 

client. For example: http://as4s.lab.ancy.axway.int:1766/index.html

Where:

 l as4s.lab.ancy.axway.int is the server host name

 l 1766 is the Copilot server listening port

 2.  Enter your user profile and password in the login screen.

 3.  Click Confirm. When the connection is complete, the Copilot window is displayed.

To improve performance, several copsproc jobs are submitted within the same subsystem when you start the Copilot client:

 l COPSMNG (main task)

 l COPUI (child task)

 l COPSPROC (child task)

 l COPSPROC (child task)

 l COPSPROC (child task)

 l and so on…

This group of COPSPROC jobs is normal, and is temporarily active. Each of these jobs is shut down by the COPSMNG job after it completes the task. For more information on Copilot, refer to the  Transfer CFT online documentation.

Manage Transfer CFT using IFSThis section explains how you can use Transfer CFT on the IFS environment. To do this you must run the following commands:

 1.  Log on the iSeries using the Transfer CFT account.

 2.  Execute the QSH command.

 3.  Change the directory:

cd /home/cft/TransfertCFT/runtime

 4.  Load the profile:

. ./profile

 5.  You can then use standard Transfer CFT programs, such as:

 l CFTSTART: Start Transfer CFT

 l CFTSTOP: Stop Transfer CFT

70  Installation Guide Transfer CFT IBM i3.3.0

Page 78: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

CentralGovernance registration concepts

 l COPSTART: Start UI Server

 l COPSTOP: Stop UI Server

 l CFTUTIL

 l PKIUTIL

 l Etc.

Central Governance registration conceptsThis topic describes the Transfer CFT to Central Governance registration process.

There are several types of exchanges that occur between Central Governance and Transfer CFT. The first exchange is registration, which begins when  Copilot1 initiates a request to connect with Central Governance.

The registration is performed on a SSL connection using simple authentication. Further exchanges - the heartbeat, and certificate renewal - are performed on a SSL connection using mutual authentication, as described in Central Governance exchanges.

Refer to the Central Governance 1.1.3 User Guide for more information on registration processes, such as registration approval.

Figure 1. Registration exchange overview

1Transfer CFT UI

Transfer CFT IBM i3.3.0 Installation Guide  71

Page 79: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Step overviewStarting  Copilot after installation begins the connection and registration process with Central Governance. This section describes the general steps that occurs during the registration process, and the impact on the configuration.

Note Transfer CFT requires the Central Governance shared secret to register. See the Central Governance documentation for details.

1. Copilot connects to Central Governance and submits its registration.

 l Copilot sends a registration request through a simple authenticated SSL connection and submits its registration. Copilot authenticates the Central Governance server using the CA certificate pointing by the uconf:cg.ca_cert_id parameter. The registration request contains:     

 o Information about the Transfer CFT instance, including its instance name, host, port and version.

 o Two Certificate Signing Requests (CSRs) for Central Governance to process.

Note If you use an intermediate certificate as a governance CA certificate, you must add the root CA certificate that signs  this intermediate certificate in the Transfer CFT PKI database.

2. Central Governance sends the SSL certificates to Transfer CFT.

Central Governance processes the CSRs and returns two SSL certificates, one dedicated to governance exchanges and the other one dedicated to business exchanges (meaning: used for securing file transfers between the registering Transfer CFT and all other Managed File Transfers).

Both certificates are stored in the internal PKI base using the following identifiers:    

 l <uconf:cft.instance_id>_GOV for the governance certificate;

 l <uconf:cft.instance_id> for the business certificate.

3. Copilot sends the first heartbeat over a mutual authenticated SSL connection.

4. The Transfer CFT configuration is updated and returned to Transfer CFT.

During the registration process Central Governance receives the current configuration of Transfer CFT and changes it accordingly to Central Governance rules.

Registration completes with Transfer CFT appearing in the Central Governance product list with the status of "Started" or "Stopped".

Configuration updatesDuring the registration process Central Governance receives the original Transfer CFT configuration and updates it so that         Transfer CFT is configured to: 

 l Connect to Central Governance using the Central Governance mutual authentication port

 l Use Central Governance for access management

72  Installation Guide Transfer CFT IBM i3.3.0

Page 80: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

CentralGovernance registration concepts

 l Use Central Governance for transfer monitoring

 l Use its own internal PKI

These changes create two security profiles (CFTSSL) for Transfer CFT, one client and one server, named SSL_DEFAULT.

Re-register with Central GovernanceIn the above registration scenario, when the Central Governance sends the SSL certificates to Transfer CFT (step 2), the uconf:cg.registration_id parameter is set to a positive integer. If an error occurred during steps 3 or 4, the registration process ends in error. To repeat the registration, perform the following steps:    

 1.  Stop Transfer CFT.

 2.  Stop  Copilot.

 3.  Set the uconf:cg.registration_id to its default value (-1) using the command:      

 l CFTUTIL uconfunset id=cg.registration_id

 4.  Start the Transfer CFT Copilot. Copilot starts the registration process.

Customize the SSL certificate Distinguished Name (DN)To override the business certificate's Distinguished Name (DN), which is generated during the Central Governance registration or certificate renewal,  set the UCONF parameter cg.certificate.business.csr_dn to the custom value. The default is O=Axway,OU=MFT,CN=%uconf:cft.full_hostname%. Remember to separate tokens by a comma.

uconfset id=cg.certificate.business.csr_dn,

value='O=MyCompany,OU=MFT,CN=%uconf:cft.full_hostname%'

A best practice is to customize the certificate DN prior to registration. However, if you are customizing the certificate DN after the Transfer CFT registration, you can force an immediate renewal or wait for the automatic renewal as described in SSL certificate renewal.

Override the default policyYou must set the UCONF parameter cg.configuration_policy if you want to override the default policy applied by Central Governance when you register a Transfer CFT in Central Governance.

Transfer CFT IBM i3.3.0 Installation Guide  73

Page 81: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

How to use programs without menusThis section describes ho to use programs such as CFTUTIL, CFTINIT, CFTMI, etc. For example, to migrate Transfer CFT you cannot use the standard Transfer CFT IBM i menus and require the following steps.

 1.  Enter: CALL and press F4.

 2.  In the Program field, enter the name of binary (CFTUTIL in the example).

 3.  In the Library field, enter your program library (*LIBLby default, CFTPROD  in the example).

 4.  In the Parameters field you can enter an argument.  CFTUTIL requires at least one argument (CFTEXT in the example).

Call Program (CALL)

Type choices, press Enter.

Program . . . . . . . . . . . . > CFTUTIL Name

Library . . . . . . . . . . . CFTPROD Name, *LIBL, *CURLIB

Parameters . . . . . . . . . . . > CFTEXT

+ for more values > type=all,fout=CFTPROD/cft_ext

The first argument is a CMD and the second argument is an OFORMAT. Here is an example command:

"CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext"

Program : "CFTUTIL

CMD : "CFTEXT"

OFORMAT : "type=all, fout=CFTPROD/cft_ext"

The command executed is:

CALL PGM(CFTUTIL) PARM(CFTEXT 'type=all,fout=CFTPROD/cft_ext')

 

74  Installation Guide Transfer CFT IBM i3.3.0

Page 82: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

Operating Transfer CFTAccess the Transfer CFT Main Menu screen. In the Main Menu enter the command cft and press Enter to open the Manager Menu.

Select from:

 1.  Common Transfer CFT commands

 2.  Security commands

 3.  Administration commands

 4.  Create Transfer CFT system objects

 5.  Multi-node commands  (only available if multi-node is enabled)

Full menu

Transfer CFT IBM i3.3.0 Installation Guide  75

Page 83: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Transfer CFT 3.2.x1. Common Transfer CFT commands  

1.  Start Copilot             2.  Stop Copilot              3.  Start Transfer CFT        4.  Stop Transfer CFT         5.  CFTUTIL operations        6.  Interpret source member   7.  Manage configuration File

1.  Edit configuration file      2.  Interpret configuration file

2.  Security commands   1.  Edit Security configuration file 2.  Interpret Security configuration 3.  PKIUTIL operation                          

3.  Administration commands  1.  Reinitialize Transfer CFT parameters 2.  Submit Transfer CFT support request       

4.  Create system objects 1.  Create job queue          2.  Create job description    3.  Create subsystem          4.  Add job-queue entry       5.  Create class              6.  Add routing entry         7.  Add communication entry   8.  Change profile                    

 Note: A highlighted menu item indicates there is a sub menu.

Using the common Transfer CFT commandsSelect Option 1 to use the common Transfer CFT commands:

Option Command Details

1 Start Copilot Starts the Copilot server

2 Stop Copilot Stops the Copilot server

76  Installation Guide Transfer CFT IBM i3.3.0

Page 84: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

Option Command Details

3 Start CFT Starts the Transfer CFT server, and in multi-node configuration starts all enabled nodes

4 Stop CFT Stops the Transfer CFT server, and in multi-node configuration stops all enabled nodes

5 CFTUTIL operations

Open a CFTUTIL command line session

6 Interpret source member

Interpret a source member

7 Manage configuration file

Opens the manage configuration file screen

Transfer CFT IBM i3.3.0 Installation Guide  77

Page 85: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Submit CFTUTIL commands Select Option 1 then Option 5 to start a CFTUTIL session.

This enables you to submit CFTUTIL commands via the keyboard. 

This option sequences Transfer CFT commands through to the end of the session.

Example

You can execute all  CFTUTIL operations by entering the command as follows:

SEND PART=LOOP,IDF=TEST,FNAME=CFTPROD/FILE1

78  Installation Guide Transfer CFT IBM i3.3.0

Page 86: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

About transport security and PKIUTIL commandsThis section describes SSL security parameters. For more information on transport security concepts, refer to the Security sub-book in the Transfer CFT documentation.

Certificates Refer to the Transfer CFT User Guide for more information on certificates.

Configuration changesYou must define certain elements in the product configuration if you want to use transfer security. See the delivered samples in CFTPGM/CFTSRC(TCPPARAM).

Transfer CFT IBM i3.3.0 Installation Guide  79

Page 87: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Using the PKIUTIL utilityTo use the PKIUTIL utility:

 1.  Access the Transfer CFT Main Menu screen. In the Main Menu enter the command cft and press Enter to open the Manager Menu.             

 2.  Select option 2. Security commands. Then select option 2. Interpret Security configuration and enter the member you want to interpret. By default this is the PKIBASE member in the UTIN file in CFTPROD library.

 3.  To edit the security configuration file selection option 2.  Security commands   then option 1.  Edit Security configuration file and enter the member you want to edit. By default it is the PKIBASE member in the UTIN file in CFTPROD library.

Submitting PKIUTIL commandsSelect option 2. Security commands, and then 3. PKIUTIL operation in the Operations screen to start the PKUTIL session.

This option allows you to use the keyboard to enter and execute PKIUTIL commands.

PKIU20I

PKIU20I PKI

PKIU20I Version 3.2.4 2017/02/02

PKIU20I (C) Copyright AXWAY 1989-2017

PKIU20I ====> Starting Session on 03/03/2017 Time is 16:20:37

PKIU20I

===> LISTPKI

Create a databaseUse the following commands, in order, to create a database:

PKIFILE MODE=CREATE, FNAME= 'CFTPROD/PKIBASE'

 

PKICER ID=NEWCA, MODE=CREATE, PKIFNAME=CFTPROD/PKIBASE, ITYPE=ROOT,

INAME=CFTPROD/AXWRCA, IFORM=DER, STATE=ACT, PKIPASSW=CFT

 

80  Installation Guide Transfer CFT IBM i3.3.0

Page 88: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

PKICER ID=NEWUSER,MODE=CREATE, PKIFNAME=CFTPROD/PKIBASE,

INAME=CFTPROD/MFTUSRCA, IKNAME=CFTPROD/MFTUSRCAK, ITYPE=USER,

PKIPASSW=CFT, IKPASSW=user, STATE=ACT, ROOTCID=NEWCA, IKFORM=DER

List PKI Internal datafiles contents 1.  To list the PKI internal datafiles  contents, enter the command:  LISTPKI

 2.  Press ENTER to execute the command.

A correct execution displays the following messages:

> LISTPKI

1:¬PKU|

Date = 03/03/2017 Time = 16:24:43PKI Fname =

Id. Root T S C K E Exp.Date Delivered to Delivered by------- ----- - - - - - ---------- ------------- ---------------

CAXMP CAXMP R A x 19/12/2017 CA SAMPLE FOR CA SAMPLE FOR CLIENT

CAXMP U A x x 18/12/2017 CLIENT SAMPLE CA SAMPLE FOR SERVER

CAXMP U A x x 18/12/2017 SERVER SAMPLE CA SAMPLE

PKIU00I LISTPKI _ Correct ()

Transfer CFT IBM i3.3.0 Installation Guide  81

Page 89: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Interpreting source membersSelect option 1. Common Transfer CFT commands,  then option 6. Interpret source member in the Operation screen to interpret source files dynamically.

These files contain change configuration commands and submit Transfer CFT commands routines. 

The send file command displays the following message if syntax parsing is successful:

CFTU20I CFT OS/400

CFTU20I Version 3.2.1 2015/03/12

CFTU20I (C) Copyright AXWAY 1989-2015

CFTU20I ====> Starting Session on 29/03/2013 Time is 16:03:47 CFTU20I Parameters file :CFTPARM

CFTU20I Partners file :CFTPART CFTU20I Catalog file :CFTCAT

CFTU20I

CFTU00I SEND _ Correct (PART=BOUCLE,IDF=TEST1,FNAME=CFTPROD/FILE1) CFTU20I Communication file row number used: 00000010 on 20130329 Time

1603470

1

CFTU00I SEND _ Correct (PART=BOUCLE,IDF=TEST2,FNAME=CFTPROD/FILE2) CFTU20I Communication file row number used: 00000011 on 20130329 Time

1603470

2

CFTU00I SEND _ Correct (PART=BOUCLE,IDF=TEST3,FNAME=CFTPROD/FILE3) CFTU20I Communication file row number used: 00000012 on 20130329 Time

1603470

3

CFTU00I RETURN _ Correct (CODE=0)

CFTU20I Number of Command(s) 3 CFTU20I Number of error(s) 0

82  Installation Guide Transfer CFT IBM i3.3.0

Page 90: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

Running Transfer CFTTo start the Transfer CFT server from the Operations menu, enter 1. Common Transfer CFT commands, then 3. Start Transfer CFT. Press ENTER to execute. Note that this starts the Transfer CFT subsystem if it was not already running.

Operations that recreate files prior to the start-up are only required in specific restart conditions, such as after changing the configuration.

Note If you recreate the COM file, any transfer requests deposited since Transfer CFT was last run are lost. If you recreate a CAT file, information required to restart any interrupted transfers may be lost.

Transfer CFT jobs are submitted in the following order:

 l 1: CFTMAIN (main task and transfer scheduling task)

 l 2: CFTLOG (log management task)

 l 3: CFTTCOM (command management task)

 l 4: CFTTPRO (protocol management task)

 l 5: Network handler(s)

 l 6: CFTTFIL (file tasks)

Transfer CFT cannot run if any of the jobs are missing, except for the file task. The file task is only submitted after a send or receive transfer request, or a receive request from a remote site.

Transfer CFT IBM i3.3.0 Installation Guide  83

Page 91: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Starting Transfer CFTSelect Option 1. Common Transfer CFT commands, then 3. Start Transfer CFT in the Operations screen. Once Transfer CFT starts, the product is operational. You can perform transfer operations after the startup messages are displayed.

From . . . : CFT 04/02/15 17:04:56

Start CFT Monitor - Subsystem CFTSBS is started

From . . . : CFT 04/02/15 17:04:59

CFTS33I CFTLOG current file before switch :CFTPROD/LOG1

From . . . : CFT 04/02/15 17:04:59

CFTS34I+CFTLOG executed switch proc : *LIBL/CFTSRC(B_EXECLOG)

From . . . : CFT 04/02/15 17:04:59

CFTS35I+CFTLOG current file after switch :CFTPROD/ALOG1

From . . . : CFT 04/02/15 17:04:59

CFTI34I PID=2 CFTLOG Task started successfully

From . . . : CFT 04/02/15 17:04:59

CFTI18I CFT OS/400

From . . . : CFT 04/02/15 17:04:59

CFTI18I+Version 3.0.1 2015/03/12

From . . . : CFT 04/02/15 17:04:59

CFTI18I+Version 3.2.1

From . . . : CFT 04/02/15 17:04:59

CFTI18I+(C) Copyright AXWAY 1989-2015

From . . . : CFT 04/02/15 17:04:59

CFTI18I+

From . . . : CFT 04/02/15 17:04:59

CFTI18I+MODEL E4B

From . . . : CFT 04/02/13 17:04:59

CFTI18I+CPU 06890AP

From . . . : CFT 04/02/15 17:04:59

CFTI18I+ID IDPARM0

From . . . : CFT 04/02/15 17:04:59

CFTI18I+

From . . . : CFT 04/02/13 17:04:59

CFTI18I+Authentication Method: none

From . . . : CFT 04/02/13 17:05:00

CFTC08I Catalog: Loading...

From . . . : CFT 04/02/13 17:05:00

CFTC08I Catalog: Load Done

From . . . : CFT 04/02/13 17:05:00

CFTC08I Catalog: Size=5000, Used=3(0%)

84  Installation Guide Transfer CFT IBM i3.3.0

Page 92: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

From . . . : CFT 04/02/13 17:05:02

CFTC08I Purge Started.

From . . . : CFT 04/02/13 17:05:02

CFTC08I Purge catalog-size=5000 in-use=3 pre-filtered=0(0%)

From . . . : CFT 04/02/15 17:05:03

CFTI34I PID=4 CFTTCOM Task started successfully

From . . . : CFT 04/02/13 17:05:03

CFTI34I PID=5065 CFTPRX Task started successfully

From . . . : CFT 04/02/15 17:05:04

CFTI34I PID=8 CFTTCPS Task started successfully

From . . . : CFT 04/02/13 17:05:04

CFTI34I PID=0 CFTTCPS Task started successfully

From . . . : CFT 04/02/15 17:05:04

CFTN01I NET=TCP0 started

From . . . : CFT 04/02/13 17:05:04

CFTN02I NET=TCP0 PROTOCOL=PESITANY SAP=65535 started

From . . . : CFT 04/02/15 17:05:04

CFTI34I PID=5 CFTTPRO Task started successfully

From . . . : CFT 04/02/15 17:05:05

CFTI34I PID=37328 CFTMAIN Task started successfully

From . . . : CFT 04/02/15 17:05:05

CFTI18I CFT started by user CFT

From . . . : CFT 04/02/15 17:05:05

CFTI18I+On 1000 authorized simultaneous transfer(s), 32 is(are) active

From . . . : CFT 04/02/15 17:05:05

CFTI18I+

From . . . : CFT 04/02/15 17:05:05

CFTI18I+Be careful : the license of CFT will expire in 35 days.

From . . . : CFT 04/02/15 17:05:05

CFTI18I+

From . . . : CFT 04/02/15 17:05:05

CFTI18I+EBICS Protocol Option is authorized (0 partner(s))

From . . . : CFT 04/02/15 17:05:05

CFTI18I+Edition : Advanced

From . . . : CFT 04/02/13 17:05:05

CFTI18I+TCP/IP Network Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+File Transfer Acceleration Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+Bandwidth Priority Option is authorized

From . . . : CFT 04/02/15 17:05:05

Transfer CFT IBM i3.3.0 Installation Guide  85

Page 93: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

CFTI18I+Multi-node Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+X25 Network Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+DNA Network Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+DSA Network Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+LU6.2 Network Access Method Option is authorized

From . . . : CFT 04/02/13 17:05:05

CFTI18I+VFM File Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+SNA Network Access Method Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+Web Services for Copilot Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+FIPS Compliance Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+SSL Protocol Option is authorized

From . . . : CFT 04/02/15 17:05:05

CFTI18I+

From . . . : CFT 04/02/15 17:05:05

CFTI26I+Init complete _ Security not active

From . . . : CFT 04/02/15 17:05:05

CFTI28I+Init complete _

From . . . : CFT 04/02/13 17:05:05

CFTI18I+ FNAME : CFTCAT

From . . . : CFT 04/02/15 17:05:05

CFTI11I+Init complete _ Logger process ¬ID=IDLOG0|

From . . . : CFT 04/02/15 17:05:05

CFTI18I+ FNAME : CFTPROD/LOG1

From . . . : CFT 04/02/13 17:05:05

CFTI18I+ AFNAME : CFTPROD/ALOG1

From . . . : CFT 04/02/15 17:05:05

CFTI13I+Init complete _ Communication process ¬ID=IDCOM0|

From . . . : CFT 04/02/15 17:05:05

CFTI18I+ TYPE : File FNAME : +CFTCOM

From . . . : CFT 04/02/15 17:05:05

CFTI12I+Init complete _ Protocol process

From . . . : CFT 04/02/15 17:05:05

CFTI14I+CFT init complete _ CFT400

86  Installation Guide Transfer CFT IBM i3.3.0

Page 94: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

From . . . : CFT 04/02/15 17:05:05

CFTC08I Purge Treated : no record found to delete.

From . . . : CFT 04/02/15 17:05:05

CFTR12I PURGE Treated

Transfer CFT IBM i3.3.0 Installation Guide  87

Page 95: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Shutting down Transfer CFTTo stop the Transfer CFT server access the Operations screen and select option 1. Common Transfer CFT commands, then 4. Stop Transfer CFT. Press ENTER.

The following shutdown messages are displayed:

CFTU20I

CFTU00I SHUT _ Correct ( FAST=YES)

CFTU20I Communication file row number used: 00000022 on 20130329 Time

1612460

2

CFTU20I Number of Command(s) 1

CFTU20I Number of error(s) 0

CFTU20I Ending Session on 29/03/2015 Time is 16:12:46

CFTU20I Session active for 0:00:00

Press ENTER to end terminal session.

Job 729794/CFT/CFTCLEANUP ended abnormally.

From . . . : CFT 03/29/15 16:12:51

CFTR12I SHUT Treated for USER CFT

From . . . : CFT 03/29/15 16:12:51

From . . . : CFT 03/29/15 16:12:51

CFTI35I PID=9 CFTTFIL Task ended

From . . . : CFT 03/29/15 16:12:51

CFTI35I PID=8 CFTTCPS : Normal shut Task ended

Job 729786/CFT/CFTTCPS completed normally on 03/29/15 at 16:12:51.

From . . . : CFT 03/29/15 16:12:51

CFTI35I PID=0 CFTTCPS Task ended

From . . . : CFT 03/29/15 16:12:51

CFTI35I PID=37328 CFTMAIN Task ended

From . . . : CFT 03/29/15 16:12:51

CFTI35I PID=34704 CFTTPRO Task ended

Job 729785/CFT/CFTTPRO1 completed normally on 03/29/15 at 16:12:51.

Configuring Transfer CFT parametersAccess the Transfer CFT Main Menu screen. In the Main Menu enter the command cft and press Enter to open the Manager Menu.

 1.  Select option 1 Customization and press ENTER.

 2.  In the Customization screen, select option 1 CFT parameters  and press ENTER.

 3.  You can select option 2 Interpret the selected member.

88  Installation Guide Transfer CFT IBM i3.3.0

Page 96: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

Interpreting a parameter sourceThe parameter file that you selected in the previous step, option 1 Editing the parameter source member, is interpreted by CFTUTIL. The options are confirmed before being interpreted. To interpret or update a parameter source, select option 2 Interpret selected member in the Customization screen. The following screen is displayed.

The parameter and partner files can be created, re-created, or updated prior to interpretation. If this is the first time that you are interpreting a parameter source, you must first create it. 

 l Select 1= Create for each time you interpret a new parameter source.

 l Select 2 = Update to change existing command parameters. You can modify many of the Transfer CFT parameters while CFT is running, but some configuration command changes cannot be applied dynamically. For more information, refer to the Transfer CFT online documentation.

If you select 1 Configuration interpretation, Transfer CFT displays following messages.

Table 3. View messages

CFTU20I CFT OS/400

CFTU20I Version 3.2.1 2015/03/15

CFTU20I (C) Copyright AXWAY 1989-2015

CFTU20I ====> Starting Session on 02/04/2013 Time is 09:28:19

CFTU20I

CFTU00I CFTFILE _ Correct (type=param,mode=create,fname=CFTPROD/PARM1)

CFTU20I Number of Command(s) 1

CFTU20I Number of error(s) 0

CFTU20I Ending Session on 02/04/2013 Time is 09:28:20

CFTU20I Session active for 0:00:01

Press ENTER to end terminal session.

CFTU20I

CFTU20I CFT OS/400

CFTU20I Version 3.0.1 2013/03/15

CFTU20I (C) Copyright AXWAY 1989-2012

CFTU20I ====> Starting Session on 02/04/2013 Time is 09:29:20

CFTU20I

CFTU00I CFTFILE _ Correct (type=part,mode=create,fname=CFTPROD/PART1 )

CFTU20I Number of Command(s) 1

CFTU20I Number of error(s) 0

CFTU20I Ending Session on 02/04/2015 Time is 09:29:22

CFTU20I Session active for 0:00:02

Press ENTER to end terminal session.

CFTU20I

Transfer CFT IBM i3.3.0 Installation Guide  89

Page 97: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

CFTU20I CFT OS/400

CFTU20I Version 3.2.1 2015/03/15

CFTU20I (C) Copyright AXWAY 1989-2015

CFTU20I ====> Starting Session on 02/04/2013 Time is 09:29:24

CFTU20I Parameters file :+CFTPARM

CFTU20I

CFTU00I CFTPARM _ Correct

(MODE=REPLACE,ID=IDPARM0,CAT=IDCAT0,COM=IDCOM0,LOG

=

CFTU00I IDLOG0,NET=TCP0,PROT=PESITANY,MAXTASK=4,TRANTASK=8

CFTU00I ,MAXTRANS=32,BUFSIZE=32000,KEY='£CFTPROD/KEY',DEF

CFTU00I AULT=IDFDEFT,PART=CFT400,WAITRESP=900,EXECSF='*LIB

CFTU00I L/CFTSRC(B_EXECSF)',EXECRF='*LIBL/CFTSRC(B_EXECRF)

CFTU00I ',PARTFNAM='+CFTPART')

CFTU00I CFTCAT _ Correct

(MODE=REPLACE,ID=IDCAT0,FNAME='+CFTCAT',SHARE=NO,UP

CFTU00I DAT=0,WSCAN=1,ST=2,RT=2,SX=1,RX=1)

CFTU00I CFTCOM _ Correct

(MODE=REPLACE,ID=IDCOM0,TYPE=FILE,NAME='+CFTCOM',WS

CFTU00I CAN=10)

CFTU00I CFTLOG _ Correct

(MODE=REPLACE,ID=IDLOG0,FNAME='CFTPROD/LOG1',AFNAM

CFTU00I E='CFTPROD/ALOG1',MAXREC=15000,SWITCH=1300,EXEC=

'

CFTU00I *LIBL/CFTSRC(B_EXECLOG)',OPERMSG=255,NOTIFY='

CFTU00I ')

CFTU00I CFTNET _ Correct

(MODE=REPLACE,ID=TCP0,MAXCNX=32,CALL=INOUT,TYPE=TCP

CFTU00I ,HOST=INADDR_ANY)

CFTU00I CFTPROT _ Correct

(MODE=REPLACE,ID=PESITANY,NET=TCP0,TYPE=PESIT,PROF=

CFTU00I ANY,CONCAT=YES,SEGMENT=YES,MULTART=YES,SCOMP=0,RCO

CFTU00I MP=0,SCHKW=2,RCHKW=2,SPACING=512,RPACING=512,SAP=6

CFTU00I 5535,RRUSIZE=32000,SRUSIZE=32000,RTO=250,DISCTC=40

CFTU00I 0,DISCTD=200,DISCTR=10,DISCTS=400)

CFTU00I CFTPART _ Correct

(MODE=REPLACE,ID=BOUCLE,NSPART=LOOP,NRPART=LOOP,PRO

CFTU00I T=PESITANY,SAP=65535,SYST='OS400')

CFTU00I CFTTCP _ Correct

(MODE=REPLACE,ID=BOUCLE,CNXOUT=16,CNXIN=16,CNXINOUT

CFTU00I =16,HOST=127.0.0.1)

CFTU00I CFTPART _ Correct

90  Installation Guide Transfer CFT IBM i3.3.0

Page 98: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

(MODE=REPLACE,ID=CIBLE,NSPART=AS400,NRPART=CIBLE,PR

CFTU00I OT=PESITANY,SAP=65531,SYST='OS400')

CFTU00I CFTTCP _ Correct

(MODE=REPLACE,ID=CIBLE,CNXOUT=16,CNXIN=16,CNXINOUT=

CFTU00I 16,HOST=CIBLE)

CFTU00I CFTSEND _ Correct

(MODE=REPLACE,ID=TSTIMPL,IMPL=YES,FNAME='QGPL/QAUOO

CFTU00I PT',EXEC='*LIBL/CFTSRC(B_EXECSIMP)',FCODE=EBCDIC)

CFTU00I CFTSEND _ Correct

(MODE=REPLACE,ID=TSTNCOMP,IMPL=NO,FCODE=EBCDIC,NCOM

CFTU00I P=0)

CFTU00I CFTSEND _ Correct (MODE=REPLACE,ID=IDFDEFT,IMPL=NO,FCODE=EBCDIC)

CFTU00I CFTRECV _ Correct

(MODE=REPLACE,ID=SRC400,FTYPE='S',FDISP=BOTH,FACTIO

CFTU00I N=ERASE,FCODE=EBCDIC,FRECFM='F',FNAME='CFTPROD/UT

CFTU00I IN(R_?PARM)')

CFTU00I CFTRECV _ Correct

(MODE=REPLACE,ID=SRCFILE,FDISP=BOTH,FACTION=ERASE,F

CFTU00I CODE=EBCDIC,FRECFM='F',FNAME='CFTPROD/UTIN(R_?PAR

CFTU00I M)')

CFTU00I CFTRECV _ Correct

(MODE=REPLACE,ID=COMMUT,FDISP=BOTH,FACTION=DELETE,F

CFTU00I CODE=BINARY,FRECFM='V',FSPACE=65535,FNAME='CFTPROD

CFTU00I P/R_?IDTU')

CFTU00I CFTRECV _ Correct

(MODE=REPLACE,ID=IDFDEFT,FDISP=BOTH,FACTION=DELETE

,

CFTU00I FCODE=EBCDIC,FRECFM='F',FSPACE=65535,FNAME='CFTPROD

CFTU00I /R_?IDTU')

CFTU00I CFTRECV _ Correct

(MODE=REPLACE,ID=SAVEFILE,FDISP=BOTH,FACTION=DELETE

CFTU00I ,FCODE=BINARY,FTYPE='Z',FNAME='CFTPROD/R_?IDTU')

CFTU00I RETURN _ Correct (CODE=0)

CFTU20I Number of Command(s) 18

CFTU20I Number of error(s) 0

CFTU20I Ending Session on 02/04/2013 Time is 09:29:25

CFTU20I Session active for 0:00:01

An interpretation is considered to be valid when all messages are displayed as Correct.

If an interpretation error is detected, modify the invalid parameter or parameter, and select 2 Repeat the interpretation. When you select 2 Repeat the interpretation, only messages concerning configuration commands are displayed.

Transfer CFT IBM i3.3.0 Installation Guide  91

Page 99: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Exits in Transfer CFT IseriesAs of Transfer CFT 3.1.3, you no longer require the OVRDBF command in exits scripts. The CFTUTIL, PKIUTIL, SECUTIL utilities automatically perform the needed OVRDBF action.

Identity and access management

About internal access managementThis section describes access management for Transfer CFT on a IBM i system.

Updating the secini and secenvg files

Updating the secini file (pf-dta)In command line on the Transfer CFT IBM i, enter the command MAJSECINI   and press F4.

Updating the secenvg file (pf-dta)In command line on the Transfer CFT IBM i, enter the command MAJSECENVG   and press F4.

Generating security base dictionaries 1.  In command line on the Transfer CFT IBM i, enter the command GENEDICT and press F4.

Security dictionary generation (GENEDICT)

Type choices, press Enter.

Option (B/A/O) ...........: . . B B(ALL) A(Action) O(Object)

 2.  Specify the dictionaries that you want to generate:

 l B = generate both an objects and an actions dictionaries

 l A = only generate an actions dictionary 

 l O = only generate an objects dictionary 

92  Installation Guide Transfer CFT IBM i3.3.0

Page 100: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Operating Transfer CFT

Using the secparm file

Creating and interpreting an internal access management file (security base) 1.  Enter the SECUTIL command to begin a session, and execute the following command:

SECFILE FNAME=CFTPROD/SECPARM1,MODE=CREATE

SECU20I

SECU20I CFT Transfer CFT IBM i

SECU20I Version 3.2.1 2016/01/01

SECU20I (C) Copyright AXWAY 1989-2016

SECU20I ====> Starting Session on 02/02/2016 Time is 08:56:35

SECU20I

SECFILE FNAME=CFTPROD/SECPARM1,MODE=CREATE

1:¬SEU| SECU00I SECFILE _ Correct (FNAME=CFTPROD/SECPARM1,MODE=CREATE)

 2.  To interpret the source member execute:

SECUTIL PARAM(#CFTPROD/SECPARM1)

Option descriptions

 l 1: Delete and recreate the existing interpreted parameters file prior to interpreting the parameters source member. If you select option 1, the SECPARM1 file is deleted and regenerated before the security parameter file is interpreted.

 l 2: Only interpret the parameters source member in the existing interpreted parameters file.

Running Transfer CFT with a security base

Configuring Transfer CFT parameter with a security baseInitially you must create the CFT files with HABFNAME by including the CFTFILE command in your parameter source file. Refer to parameter sample:

CFTPROD/UTIN MBR(TCPPESITS)

Interpreting Transfer CFT parameters with a security base 1.  From the CFT Main menu, select option 1 Customization. Press Enter to continue.

 2.  From the Main Customization screen, select 1 CFT Parameters. Press Enter.

 3.  Select option 2 Interpret selected member. Press Enter to validate.

Transfer CFT IBM i3.3.0 Installation Guide  93

Page 101: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

 4.  Select 3 Create (security). Selecting option 3 deletes PART and PARM files and re-creates them with a security base option before interpreting the Transfer CFT parameter file.

Starting Transfer CFT with a security base 1.  From the CFT Main menu, select 2 Operation CFTUTIL. Press Enter.

 2.  From the Operation menu, select 9 Start CFT monitor. Press Enter.

 3.  Select option 3 YES (security). Selecting option 3 deletes the CAT and COM files and re-creates them with a security base option before starting CFT.

For more information, refer to the security sections in the Transfer CFT 3.2.4 User Guide.

94  Installation Guide Transfer CFT IBM i3.3.0

Page 102: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Viewing transfer messages

Viewing transfer messagesAfter depositing a transfer command, such as the loop-back test, the following messages are displayed.

ExampleSEND PART=LOOP,IDF=TEST,FNAME=CFTPROD/TEST

From . . . : CFT 04/02/15 17:12:45

CFTR12I SEND PART=LOOP IDF=TEST Treated for USER CFT

From . . . : CFT 04/02/15 17:12:45

+

From . . . : CFT 04/02/15 17:12:45

CFTS20I Communication file row number deleted: 00000030

From . . . : CFT 04/02/15 17:12:45

+

From . . . : CFT 04/02/15 17:12:46

CFTW09I PART=LOOP IDF=TEST IDT=D0217124 CFTSEND IDFDEFT NIDF=TEST

From . . . : CFT 04/02/15 17:12:46

+

From . . . : CFT 04/02/15 17:12:46

CFTT13I PART=LOOP IDF=TEST IDT=D0217124 _ Session parameters

From . . . : CFT 04/02/15 17:12:46

+ PROT=PESITANY SAP=65535 HOST=127.0.0.1

From . . . : CFT 04/02/15 17:12:46

CFTI34I PID=9 CFTTFIL Task started successfully

From . . . : CFT 04/02/15 17:12:47

CFTT53I PART=LOOP IDF=TEST IDT=D0217124 Requester file selected

From . . . : CFT 04/02/15 17:12:47

CFTT55I PART=LOOP IDF=TEST IDT=D0217124 Requester file opened

From . . . : CFT 04/02/15 17:12:47

CFTH56I PART=LOOP IDS=00003 PESIT Server session opened

pi7=02:00512

From . . . : CFT 04/02/15 17:12:47

CFTH56I PART=LOOP IDS=00002 PESIT Requester session opened

pi7=02:00512

From . . . : CFT 04/02/15 17:12:47

CFTW09I PART=LOOP IDF=TEST IDT=D0217124 CFTRECV IDFDEFT NIDF=TEST

From . . . : CFT 04/02/15 17:12:47

+

Transfer CFT IBM i3.3.0 Installation Guide  95

Page 103: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

From . . . : CFT 04/02/15 17:12:47

CFTT53I PART=LOOP IDF=TEST IDT=D0217124 Server file created

From . . . : CFT 04/02/15 17:12:47

CFTT55I PART=LOOP IDF=TEST IDT=D0217124 Server file opened

From . . . : CFT 04/02/15 17:12:47

CFTT57I PART=LOOP IDF=TEST IDT=D0217124 Server transfer started

From . . . : CFT 04/02/15 17:12:47

CFTT57I PART=LOOP IDF=TEST IDT=D0217124 Requester transfer started

From . . . : CFT 04/02/15 17:12:47

CFTT58I PART=LOOP IDF=TEST IDT=D0217124 Server transfer ended

From . . . : CFT 04/02/15 17:12:47

CFTT58I PART=LOOP IDF=TEST IDT=D0217124 Requester transfer ended

From . . . : CFT 04/02/15 17:12:47

CFTT56I PART=LOOP IDF=TEST IDT=D0217124 Server file closed

From . . . : CFT 04/02/15 17:12:47

CFTH58I PART=LOOP IDS=00003 IDF=TEST NIDT=9317124 transfer

deselected

From . . . : CFT 04/02/15 17:12:47

+ T=400

From . . . : CFT 04/02/15 17:12:47

CFTT54I PART=LOOP IDF=TEST IDT=D0217124 Server file deselected

From . . . : CFT 04/02/15 17:12:47

CFTT88I+IDT=D0217124 FNAME=CFTPROD/R_A000000L NBC=160

From . . . : CFT 04/02/15 17:12:47

CFTH58I PART=LOOP IDS=00002 IDF=TEST NIDT=9317124 transfer

deselected

From . . . : CFT 04/02/15 17:12:47

+ T=200

From . . . : CFT 04/02/15 17:12:47

CFTT56I PART=LOOP IDF=TEST IDT=D0217124 Requester file closed

From . . . : CFT 04/02/15 17:12:47

CFTT54I PART=LOOP IDF=TEST IDT=D0217124 Requester file deselected

From . . . : CFT 04/02/15 17:12:48

CFTT88I+IDT=D0217124 FNAME=CFTPROD/TEST NBC=160

From . . . : CFT 04/02/15 17:12:48

CFTS03I PART=LOOP IDF=TEST IDT=D0217124 _ *LIBL/CFTSRC(B_EXECRF)

From . . . : CFT 04/02/15 17:12:48

+ executed

From . . . : CFT 04/02/15 17:12:50

CFTS03I PART=LOOP IDF=TEST IDT=D0217124 _ *LIBL/CFTSRC(B_EXECSF)

From . . . : CFT 04/02/15 17:12:50

96  Installation Guide Transfer CFT IBM i3.3.0

Page 104: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Viewing transfer messages

+ executed

From . . . : CFT 04/02/15 17:12:50

CFTR17I END PART=LOOP IDF=* IDTU=A000000L In progress for USER

From . . . : CFT 04/02/15 17:12:50

+ CFT

From . . . : CFT 04/02/15 17:12:50

CFTR12I END PART=LOOP IDF=* IDTU=A000000L Treated for USER

CFT

From . . . : CFT 04/02/15 17:12:50

+

From . . . : CFT 04/02/15 17:12:50

CFTS20I Communication file row number deleted: 00000031

From . . . : CFT 04/02/15 17:12:50

+

From . . . : CFT 04/02/15 17:12:50

CFTR12I SEND PART=LOOP IDM=REP Treated for USER CFT

From . . . : CFT 04/02/15 17:12:50

From . . . : CFT 04/02/15 17:12:50

CFTS20I Communication file row number deleted: 00000032

From . . . : CFT 04/02/15 17:12:50

+

From . . . : CFT 04/02/15 17:12:50

CFTT13I PART=LOOP IDM=REP IDT=D0217125 _ Session parameters

From . . . : CFT 04/02/15 17:12:50

+ PROT=PESITANY SAP=65535 HOST=127.0.0.1

From . . . : CFT 04/02/15 17:12:50

CFTT59I PART=LOOP IDM=TEST IDT=D0217124 Server reply

transfered

From . . . : CFT 04/02/15 17:12:50

CFTH60I PART=LOOP IDS=00002 IDM=TEST NIDT=9317124 reply

transfered

From . . . : CFT 04/02/15 17:12:50

CFTT59I PART=LOOP IDM=REP IDT=D0217125 Requester reply

transfered

From . . . : CFT 04/02/15 17:12:50

CFTH62I+ REF=9317124.LOOP.LOOP.0.TEST..

From . . . : CFT 04/02/15 17:12:51

CFTR17I END PART=LOOP IDF=* IDTU=A000000K In progress for USER

From . . . : CFT 04/02/15 17:12:51

+ CFT

From . . . : CFT 04/02/15 17:12:51

Transfer CFT IBM i3.3.0 Installation Guide  97

Page 105: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

CFTR12I END PART=LOOP IDF=* IDTU=A000000K Treated for USER

CFT

From . . . : CFT 04/02/15 17:12:51

+

From . . . : CFT 04/02/15 17:12:51

CFTS20I Communication file row number deleted: 00000033

From . . . : CFT 04/02/15 17:12:51

98  Installation Guide Transfer CFT IBM i3.3.0

Page 106: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Application programming interface

Application programming interface Note Only ILE (Integrated Language Environment) is supported.

You perform Transfer CFT service calls differently depending on the programming language that you use (C, COBOL or RPG). For more information, refer to the programming topics in the Transfer CFT User Guide.

The Transfer CFT service called (CFTI, CFTU or CFTC) executes the request, either with or without analyzing command syntax, and then initializes the response zone. 

The client application receives from Transfer CFT:

 l A return code 

 l The requested data, if applicable

Call from a COBOL/ILE or RPG/ILE program

Querying the Catalog: CFTI functionAvailable commands include OPEN, SELECT, NEXT, MODIFY and CLOSE.

Requesting a transfer: CFTU and CFTC functionsAvailable parameters include: F-SEND, F-RECV, F-START, F-HALT, F-KEEP, F-DELETE, F-END and F-COM.

COBOL/ILE Programming examples

Refer to the programming examples, the COBOL COPY clauses, and the execution procedures, which are supplied in the Transfer CFT library CFTPGM/CFTSRC (APICPYCBL, INTCAT, TCFTU_CBL1(API asynchronous),TCFTU_CBL2(API synchronous), I_INTCAT, I_TCFTU_CB).

RPG/ILE Programming examples

Refer to the programming examples, RPG COPY clauses, and procedures, which are supplied in the Transfer CFT library:

 l CFTPGM/CFTSRC (CPYRPGCILE, CPYRPGIILE, CPYRPGCIL4, CPYRPGIIL4)

 o TCFTU_RPG(API structure V23)

 o TCFTI2_RPG(API structure V24)

 o TCFTU_RP1(API asynchronous)

 o TCFTU_RP2(API synchronous)

 o I_TCFTI_RP(executes CFTI or CFTIX functions)

 o I_TCFTU_RP(executes CFTU function), etc.

Transfer CFT IBM i3.3.0 Installation Guide  99

Page 107: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

Call from a C ProgramThe following are equivalent to the previous programs:

 l cftai for CFTI

 l cftau for CFTU

 l cftac for CFTC

Using the CFTAPI1

Refer to the programming examples, INCLUDE clauses, and execution procedures, which are supplied in the Transfer CFT library CFTPGM/CFTSRC (APIXMP1, APIXMP2, APIXMP4, CFTAPI, I_APIXMP1, I_APIXMP2, I_APIXMP4…).  

Using the CFTAPI2

Refer to the programming examples, INCLUDE clauses, and execution procedures, which are supplied in the Transfer CFT library CFTPGM/CFTSRC (API2XMP1, AP2IXMP2, CFTAPI2, I_API2XMP1, I_API2XMP2). 

100  Installation Guide Transfer CFT IBM i3.3.0

Page 108: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Start the Transfer CFT IBM iManager

Start the Transfer CFT IBM i ManagerOther than during installation, which runs the Transfer CFT manager automatically, you can enter one of the following commands to start the manager:

 l CFT

 l CALL CFTMENU

Starting Transfer CFT in batch modeThe CFTMGSBM CLP program is used to start Transfer CFT IBM i without any required user action. 

CFTMGSBM comprises:

ADDLIBLE LIB(CFTPGM) POSITION(*FIRST)

ADDLIBLE LIB(CFTPROD) POSITION(*FIRST)

CALL PGM(CFTMGSBM)

RMVLIBLE LIB(CFTPGM)

RMVLIBLE LIB(CFTPROD)

Transfer CFT IBM i3.3.0 Installation Guide  101

Page 109: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

3  Post-installation

102  Installation Guide Transfer CFT IBM i3.3.0

Page 110: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

4  Create an Express Package

A product deployment package in Transfer CFT is called an Express Package. For the iSeries platform, you can create a deployment package for Transfer CFTs to be used with Central Governance, or for standalone Transfer CFTs.

This section describes how to create a reusable and distributable Transfer CFT package to simplify and ease the task of installing and configuring Transfer CFTs on multiple servers of the same architecture. 

Note You can only install a Transfer CFT Express Package on the same platform as the one on which it was generated. 

Create a deployment package for Transfer CFTs used with Central Governance

Perform the following steps: 

 1.  Create a user profile using the command: CRTUSRPRF

 2.  Create a temporary library, for example:

CRTLIB CFTINSTEMP

 3.  Create a save file (*SAVF) in the CFTINSTEMP library, for example:

CRTSAVF FILE(CFTINSTEMP/CFT32XL) TEXT('Transfer CFT

Distribution save file')

 4.  Use FTP in binary mode to send the save file to an iSeries system. Open an FTP session, and enter:

Set Transfer Mode to bin

cd CFTINSTEMP

put Transfer_CFT_os400.bin CFT32XL

quit

 5.  Restore the Transfer CFT save file, for example:

RSTLIB SAVLIB(CFTPG) DEV(*SAVF) SAVF(CFTINSTEMP/CFT32XL)

RSTLIB(CFTINSTEMP)

Transfer CFT IBM i3.3.0 Installation Guide  103

Page 111: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

4  Create an Express Package

 6.  Install a Transfer CFT 3.2.4 with Central Governance (you must use this command for all iSeries Transfer CFT deployments). 

In the following example,  you should customize the fields in bold to suit your business needs.

INSTALL PGMLIB(CFTPGM) PRODLIB(CFTPROD) CFTJOBD(CFTJOBD) CFTJOBQ(CFTJOBD) CFTSBSD(CFTSBS) CFTCLS(CFTCLS) PTHINSTALL('/home/cft324/install') PTHRUNTIME('/home/cft324/runtime') COPSRVHST(Iserie.ptx.axway.int) COPSRVPRT(1766) COPPRTSSL(1767) ENCG(1) CGHOST(cg.ptx.axway.int) CGPORT(22553) SHRDSCRT(Secret01) SHRDSCRT2(Secret01) FULLHOST(Iserie.ptx.axway.int) CFTINSTID(CICFTOS400) PORTCOMS(1765) PSITANYSAP(1761) LICKEY(MY_KEY)

Note If you want to add or modify the installation parameters, you must run the INSTALL command after selecting F4. Answer the prompted questions  to configure the product for your production. At the end of your first installation, press F9 to execute the recall command. This command must be used for all your deployments.

 7.  Use Central Governance to deploy and configure your Transfer CFTs as needed.

Create a Transfer CFT deployment package for standalone usage

In this procedure, you must first create a SAVF file that contains all of your necessary configurations for your deployment including:

 l Static configuration, such as protocols (CFTPROT), networks (CFTNET), UCONF parameters, and so on

 l Partners (CFTPART, CFTTCP)

Note If you create partners to export, DO NOT use the NSPART parameter in the CFTPART definition. The target Transfer CFT instead uses the CFTPARM PART/NPART values.

 l Flows (CFTSEND and CFTRECV)

 l SSL certificates

 l Processing scripts and EXITs

 l Additional Axway components that you use with Transfer CFT such as Sentinel, PassPort, etc.

Procedure 1.  Create a temporary library that will contain all the items you want to deploy, for example:

CRTLIB CFTCONF

 2.  Copy in this library all the elements you want to deploy, for example:

Transfer CFT IBM i3.3.0 Installation Guide  104

Page 112: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

4  Create an Express Package

TCPPARAM, PKIBASE, etc.

 3.  Create a backup for your library CFTCONF, for example:

1. CRTSAVF FILE(CFTCONF/CFTCONFSVF

2. SAVLIB LIB(CFTCONF) DEV(*SAVF) SAVF(CFTCONF/CFTCONFSVF)

3. Get the CFTCONFSVF.savf (in binary mode)

 4.  Create a user profile using the command: CRTUSRPRF

 5.  Create a temporary library, for example:

CRTLIB CFTINSTEMP

 6.  Create two save file (*SAVF) in the CFTINSTEMP library, for example:

1. CRTSAVF FILE(CFTINSTEMP/CFT32XL) TEXT('Transfer CFT

Distribution')

2. CRTSAVF FILE(CFTINSTEMP/CFTCONFSVF) TEXT('CFT

configuration')

 7.  Use FTP in binary mode to send the save file to an Iserie system. Open an FTP session, and enter:

Set Transfer Mode to bin

cd CFTINSTEMP

put Transfer_CFT_os400.bin CFT32XL (SAVF with Transfer CFT)

put CFTCONFSVF.savf CFTCONFSVF (SAVF with CFT configuration)

quit

 8.  Restore the Transfer CFT save file, for example:

RSTLIB SAVLIB(CFTPG) DEV(*SAVF) SAVF(CFTINSTEMP/CFT32XL)

RSTLIB(CFTINSTEMP)

 9.  Installing a Transfer CFT 3.2.4 without Central Governance

INSTALL

Note When you run INSTALL without parameters, you run the default installation with the CFTPGM and CFTPROD libraries.

Transfer CFT IBM i3.3.0 Installation Guide  105

Page 113: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

4  Create an Express Package

 10.  Restore the Transfer CFT configuration save file, for example:

RSTLIB SAVLIB(CFTCONF) DEV(*SAVF) SAVF(CFTINSTEMP/CFTCONFSVF)

RSTLIB(CFTPROD)

 11.  Apply your configuration to your new environment, for example:

1. CFTUTIL PARAM('#CFTPROD/<CFTCONF>)

2. PKIUTIL PARAM('#CFTPROD/<PKICONF>')

Limitations l Transfer CFT Express Package does not support cluster mode installations.

 l Transfer CFT Express Package cannot embed a Transfer CFT upgrade pack.

Transfer CFT IBM i3.3.0 Installation Guide  106

Page 114: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade and migrate procedures

This section describes how to upgrade or migrate to Transfer CFT 3.2.4.

Prerequisites

Important information before performing an upgrade or migration procedure l You must update your Transfer CFT to the most recent service pack version.

 l Backup Transfer CFT before beginning an upgrade or migration procedure.

 l Before beginning the upgrade or migration procedure stop the existing version of Transfer CFT  and the UI server. (I.e., you must stop all cluster nodes  as a database migration occurs when performing an upgrade.)

About license keys l You require a new license key if you are migrating from a version 2.x Transfer CFT to a version 3.x. 

 l For details on how to apply or update a license key, and the new license key location, see the section Apply a license key.

Note You require  as many keys as instances of Transfer CFT IBM i running at same time. For example, two Transfer CFT instances cannot run at the same time, on the same server, using the same license key.

Transfer CFT IBM i3.3.0 Installation Guide  107

Page 115: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Update Transfer CFT IBM iThis section describes how to apply a patch or Service Pack to Transfer CFT in an IBM i environment. 

Display patch informationUse the CFTUTIL ABOUT command to display the product information, including the service pack number and patch number.

Results

CFT information :

* product = CFT/OS400

* version = 3.2.4

* level = SP0_P1

* upgrade = 8668000

* target = os400

Update with a service packTo apply a service pack:

 1.  Stop Transfer CFT.

 2.  Create a SAVF on your IBM i system.

 3.  Upload the Transfer_CFT_3.2.x_SPx_os400.bin (in binary mode) to the SAVF you created in Step 2.

 4.  Restore the SAVF to a temporary library, add it to your library list, and then launch the UPDATE command.

Note The program library CFTPGM is cleared, and you are asked if the production library CFTPROD should be cleared.

 5.  Complete the required fields:

 l In the first field, enter your program library.

 l In the second field, enter your production library.

 l In the third field, enter the name of the SAVF where the backup of your current version is stored.

 l The SAVF must be in your production library. If there is no SAVF, it is created.

CFT Update (UPDATE)

Type choices, press Enter.

108  Installation Guide Transfer CFT IBM i3.3.0

Page 116: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Update Transfer CFT IBM i

CFT Program library . . . . . . CFTPGM Name

CFT Production library . . . . . CFTPROD Name

SAVF name for current version . CFTSAVF Name

 5.  Press Enter to continue.

Use the CFTUTIL ABOUT command to check the service pack level.

Results, for example, after applying SP4:

CFT information :

* product = CFT/OS400

* version = 3.2.4

* level = SP4

* upgrade = 8712000

* target = os400

Note You should keep the save file where the previous version was saved (for example, in CFTSAVF),  in case you need to uninstall the service pack.

Apply a patch 1.  Stop Transfer CFT.

 2.  Create a SAVF on your IBMi system.

 3.  Upload the Transfer_CFT-SPx_Patchz_os400.bin (in binary mode) to the SAVF you created in Step 2.

 4.  Restore the SAVF to a temporary library, add it to the top of your library list, and then launch the PATCHER command.

 5.  Complete the required fields:

 l In the first field, enter your CFT program library.

 l In the second field, enter the name of the SAVF where the backup of current

Module versions impacted by the patch are stored. If the SAVF does not exist, it is created; if it exists, it is cleared.

Install Transfer CFT patch (PATCHER)

Type choices, press Enter.

Program library . . . . . . . . CFTPGM Character value

SAVF for backup . . . . . . . . PATCHSAV Character value

Results

Use the CFTUTIL ABOUT command to check the patch level.

Transfer CFT IBM i3.3.0 Installation Guide  109

Page 117: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Results, for example, after applying SP2_Patch2:

CFT information :

* product = CFT/OS400

* version = 3.2.4

* level = SP2_Patch2

* upgrade = 8712000

* target = os400

Uninstall a service pack or patchWhen you apply a patch or a Service Pack, a backup of your previous version is saved in a SAVF object (named, for example, SPXSAV). This SAVF is located in your production library. You can use the UNINSTALL command, delivered in the program library, to uninstall a service pack and roll back to the previous version.  

Follow these steps to uninstall a patch or service pack:

 1.  Stop Transfer CFT and Copilot.

 2.  Call the UNINSTALL command, press F4, and complete the following fields:

CFT Uninstall (UNINSTALL)

Type choices, press Enter.

CFT Program library . . . . . . CFTPGM Name

CFT Production library . . . . . CFTPROD Name

SAVF name of previous version . SPXSAV Name

Where:

 o Parameter 1: Name of your program library

 o Parameter 2: Name of your production library

 o Parameter 3: Name of the SAVF where you saved your previous library when you updated Transfer CFT

 3.  Press Enter. The patch or service pack is removed and you are returned to the previous version.

110  Installation Guide Transfer CFT IBM i3.3.0

Page 118: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

Manually migrate Transfer CFT

Prerequisites

Install Transfer CFT 3.2.4Perform a Transfer CFT installation, as described in the OS-specific installation section.

After performing a Transfer CFT 3.2.4 installation, you should update the  to the most recent service pack.

Load the environment Before beginning the manual migration procedure, you must load the old Transfer CFT environment.

Check TLS versionAs of Transfer CFT 3.2.0 the use of cipher suites 59, 60, and 61 is restricted to TLS 1.2 exclusively. This means that if you are using one of these cipher suites, and you perform a migration from a version lower than 3.2.0, you must set the UCONF parameter cft.ssl.version_max=tls_1.2.

Transfer CFT IBM i3.3.0 Installation Guide  111

Page 119: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Migrating from Transfer CFT 2.3.2 This section describes how to migrate Transfer CFT 2.3.2 to 3.2.4. See also How to use programs without menus on page 74 for help performing the migration commands.

Migrating the configuration

Migrate the main configurationMigrate PARM, PART, IDF and other static configuration objects.

 1.  Load the Transfer CFT 2.3.2 environment. See the Prerequisites for details.

 2.  Export your static configuration objects using the CFTUTIL CFTEXT command. 

CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext

 3.  Open the extract configuration files, cft-extract.conf, and update the file paths with those of the Transfer CFT 3.2.4 installation.

 4.  Load the Transfer CFT 3.2.4 environment.

 5.  Import your static configuration objects using the cftinit command. 

cftinit CFTPROD/cft_ext

Migrating TRKCNF file parameters 1.  In the TRKCNF file, select the parameters you want to import into 3.2.4.

 2.  Create a script file, for example: TRKAPI_IMP

 3.  For each parameter you select, add a UCONF command line to your new script file using the format: 

UCONFSET id=<parameter_id>, value=<value>

 4.  Use the parameter mapping between trkapi and UCONF, as listed in the following table, to specify the correct parameter id.

Table 4. Parameter mapping between the CFTPROD/UTIN(TRKCNF) file and UCONF

Parameter in trkapi.cfg Parameter names in UCONF

TRACE sentinel.trktrace

112  Installation Guide Transfer CFT IBM i3.3.0

Page 120: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

Parameter in trkapi.cfg Parameter names in UCONF

TRKGMTDIFF sentinel.trkgmtdiff

TRKIPADDR_BKUP sentinel.trkipaddr_bkup

TRKIPPORT sentinel.trkipport

TRKIPPORT_BKUP sentinel.trkipport_bkup

TRKLOCALADDR sentinel.trklocaladdr

TRKPRODUCTNAME sentinel.trkproductname

XFB.BufferSize sentinel.xfb.buffer_size

XFB.Log (UNIX) sentinel.xfb.log

XFBLOG (Windows) sentinel.xfb.log

XFB.Sentinel sentinel.xfb.enable

XFB.Trace sentinel.xfb.trace

XFB.Transfer sentinel.xfb.transfer

 5.  Load the Transfer CFT 3.2.4 environment.

 6.  Import the selected UCONF parameters using the command CFTUTIL. Replace <script_filename> with the new script file path: CFTUTIL <prefix_character><script_filename>

Example

CFTUTIL @TRKAPI_IMP

Migrating PKI certificatesExporting PKI certificates from Transfer CFT 2.3.2 is not supported. For this reason, you must create a new PKI database in the Transfer CFT 3.2.4 runtime using the PKIUTIL PKIFILE command. Next import each certificate using the PKIUTIL PKICER command. 

For more information, refer to the  Transfer CFT  3.2.4 User's Guide, sections Using the PKIFILE command and Using the PKICER command.

Transfer CFT IBM i3.3.0 Installation Guide  113

Page 121: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Migrating the runtime environment

Migrate the catalog 1.  Load the Transfer CFT 3.2.4 environment.

 2.  Export the catalog using the command CFTMI230:

CFTMI230 MIGR type=CAT, direct=FROMCAT, ifname=<catalog_2.3.2_

filename>, ofname=CFTPROD/cat_out

 3.  Import the catalog using the command CFTMI. Replace the <catalog_filename_new_installation> with the corresponding environmental variable: +CFTCAT

CFTMI MIGR type=CAT, direct=TOCAT, ifname=CFTPROD/cat_out,

ofname=<catalog_filename_new_installation>

Migrating the communication media files 1.  Load the Transfer CFT 3.2.4 environment.

 2.  Export the communication media file using command CFTMI230:

CFTMI230 MIGR type=COM, direct=FROMCOM, ifname=<com_2.3.2_filename>,

ofname=CFTPROD/com_out

 3.  Import the communication media file using command CFTMI. Replace the <com_filename_new_installation> with the system-specific environment variable: +CFTCOM

CFTMI MIGR type=COM, direct=TOCOM, ifname=com_ouput.xml, ofname=<com_

filename_new_installation>

114  Installation Guide Transfer CFT IBM i3.3.0

Page 122: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

Migrating from Transfer CFT 2.4 This topic describes how to migrate from Transfer CFT 2.4 to version 3.2.4. Before starting this migration procedure,  perform the steps described in Prerequisites.

See also How to use programs without menus on page 74 for help performing the migration commands.

Migrating the configuration

Migrating the main configurationMigrate PARM, PART, IDF and other static configuration objects.

 1.  Load the Transfer CFT 2.4 environment.  See the Prerequisites for details.

 2.  Export your static configuration objects using the CFTUTIL CFTEXT command. 

CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext

 3.  Open the extract configuration files, CFTPROD/cft_ext, and update the file paths with those of the Transfer CFT 3.2.4 installation.

 4.  Load the Transfer CFT 3.2.4 environment.

 5.  Import your static configuration objects using the cftinit command. 

cftinit CFTPROD/cft_ext

Migrating the TRKCNF file parametersMigrate the parameters from the Transfer CFT 2.4TRKCNF file.

 1.  In the TRKCNF file, select the parameters you want to import to 3.2.4.

 2.  Create a script file, for example: TRKAPI_IMP

 3.  For each parameter you select, add a UCONF command line to your new script file using the format:

UCONFSET id=<parameter_id>, value=<value>

 4.  Use the parameter mapping between CFTPROD/UTIN(TRKCNF) and UCONF, as listed in the following table, to specify the correct parameter id.

Transfer CFT IBM i3.3.0 Installation Guide  115

Page 123: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Table 5. Parameter mapping between the TRKCNF file and UCONF

Parameter in trkapi.cfg Parameter names in UCONF

TRACE sentinel.trktrace

TRKGMTDIFF sentinel.trkgmtdiff

TRKIPADDR_BKUP sentinel.trkipaddr_bkup

TRKIPPORT sentinel.trkipport

TRKIPPORT_BKUP sentinel.trkipport_bkup

TRKLOCALADDR sentinel.trklocaladdr

TRKPRODUCTNAME sentinel.trkproductname

XFB.BufferSize sentinel.xfb.buffer_size

XFB.Log (UNIX) sentinel.xfb.log

XFBLOG (Windows) sentinel.xfb.log

XFB.Sentinel sentinel.xfb.enable

XFB.Trace sentinel.xfb.trace

XFB.Transfer sentinel.xfb.transfer

 5.  Load the Transfer CFT 3.2.4 environment.

 6.  Import the selected UCONF parameters using the command CFTUTIL. Replace <script_filename> with the new script file path.

CFTUTIL <prefix_character><script_filename>

Example

CFTUTIL @TRKAPI_IMP

Migrating COPCONF parametersMigrate parameters from the Transfer CFT 2.4 COPCONF file.

 1.  From the COPCONF file, select the parameters you want to import into version 3.2.4.

 2.  Create a script file, for example: COP_IMP

116  Installation Guide Transfer CFT IBM i3.3.0

Page 124: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

 3.  For each selected parameter add a UCONF command line in your new script file using the format: 

UCONFSET id=<parameter_id>, value=<value>

 4.  Use the parameters mapping between copconf and UCONF as listed in the following table to specify the correct parameter id.

Table 6. Parameter mapping between copconf file and UCONF

Parameter in copconf Parameter name in UCONF

BatchList copilot.batches

CFTCOM copilot.cft.com

CFTMEDIACOM copilot.cft.mediacom

ChildProcessTimeout copilot.misc.childprocesstimeout

HttpRootDir copilot.http.httprootdir

MinNbProcessReady copilot.misc.minnbprocessready

NbProcessToStart copilot.misc.nbprocesstostart

NBWAITCFTCATA copilot.cft.nbwaitcftcata

ServerHost copilot.general.serverhost

ServerPort copilot.general.serverport

SslCertFile copilot.ssl.sslcertfile

SslCertPassword copilot.ssl.sslcertpassword

SslKeyFile copilot.ssl.sslkeyfile

SslKeyPassword copilot.ssl.sslkeypassword

TcpTimeout copilot.misc.tcptimeout

TIMERWAITCFTCATA copilot.cft.timerwaitcftcata

TrcMaxLen copilot.trace.trcmaxlen

TrcType copilot.trace.trctype

Transfer CFT IBM i3.3.0 Installation Guide  117

Page 125: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Parameter in copconf Parameter name in UCONF

wlogComment copilot.batches.wlog.comment

wlogParams copilot.batches.wlog.params

WsiComplience copilot.webservices.wsicomplience

 5.  Load the Transfer CFT 3.2.4 environment.

 6.  Import the selected UCONF parameters using the command CFTUTIL. Replace the <script_filename> with the new script file path.

CFTUTIL <prefix_character><script_filename>

Example

CFTUTIL @CFTPROD/COP_IMP

  

Migrating PKI certificatesYou must be at Transfer CFT 2.4.1 SP5 or higher before performing this procedure.

 1.  Load the Transfer CFT 2.4 environment.

 2.  Export your PKI certificates using the PKIUTIL PKIEXT command:

PKIUTIL PKIEXT fout=cftprod/pki_ext

 3.  Load the new Transfer CFT 3.2.4 environment.

 4.  Create a new PKI internal datafile using the command PKIUTIL PKIFILE. Replace <pki_database_filename> with the appropriate variable +CFTPKU.

PKIUTIL PKIFILE fname=<pki_database_filename>, mode='CREATE’

 5.  Import your PKI certificates into Transfer CFT 3.2.4 using the command PKIUTIL. Replace the <script_filename> with the new script file path.

PKIUTIL <prefix_character><script_filename>

Example

PKIUTIUL @CFTPROD/pki_ext

118  Installation Guide Transfer CFT IBM i3.3.0

Page 126: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

Migrating the runtime environment

Migrating the catalog 1.  Load the Transfer CFT 2.4 environment.

 2.  Export the catalog using the command CFTMI240:

CFTMI240 MIGR type=CAT, direct=FROMCAT, ifname=<catalog_2.4_filename>,

ofname=CFTPROD/cat_out

 3.  Load the Transfer CFT 3.2.4 environment.

 4.  Import the catalog using the command CFTMI. Replace the <catalog_filename_new_installation> with the corresponding environment variable:

CFTMI MIGR type=CAT, direct=TOCAT, ifname=catalog_output.xml,

ofname=<catalog_filename_new_installation>

Migrating the communication media files 1.  Load the Transfer CFT V2.4 environment.

 2.  Export the communication media file using command CFTMI240:

CFTMI230 MIGR type=COM, direct=FROMCOM, ifname=<com_2.3.2_filename>,

ofname=CFTPROD/com_out

 3.  Load Transfer CFT 3.2.4 environment.

 4.  Import the communication media file using command CFTMI. Replace <com_filename_new_installation> with the corresponding environment variable +CFTCOM.

CFTMI MIGR type=COM, direct=TOCOM, ifname=CFTPROD/com_out, ofname=<com_

filename_new_installation>

Transfer CFT IBM i3.3.0 Installation Guide  119

Page 127: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Migrating from Transfer CFT 2.6.4 SP2 or 2.7This topic describes how to migrate Transfer CFT 2.6.4 SP2, or higher, or 2.7 to version 3.2.4. 

See also How to use programs without menus on page 74 for help performing the migration commands.

Migrating the main configuration and UCONF parametersYou can migrate the PARM, PART, IDF, other static configuration objects and UCONF parameters as follows:

 1.  Load the former Transfer CFT  environment.  See the Prerequisites for details.

 2.  Export your static configuration objects using the CFTUTIL CFTEXT command. 

CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext

 3.  Open the extract configuration files, cft-extract.conf, and update the file paths with those of the new Transfer CFT 3.2.4 installation.

 4.  Load the new Transfer CFT 3.2.4 environment.

 5.  Import your static configuration objects using the cftinit command. 

cftinit CFTPROD/cft_ext

Migrating PKI certificates 1.  Load the former Transfer CFT (2.6.4 or 2.7) environment.

 2.  Export your PKI certificates using the PKIUTIL PKIEXT command. 

PKIUTIL PKIEXT fout=CFTPROD/pki_ext

 3.  Load the new Transfer CFT 3.2.4 environment.

 4.  Create a new PKI internal datafile using the command PKIUTIL PKIFILE. Replace <pki_database_filename> with the  value +CFTPKU.

PKIUTIL PKIFILE fname=<pki_database_filename>, mode='CREATE’

 5.  Import your PKI certificates into the new Transfer CFT 3.2.4 using the command PKIUTIL. Replace the <script_filename> with the new script file path: 

PKIUTIL <prefix_character><script_filename>

Examples

120  Installation Guide Transfer CFT IBM i3.3.0

Page 128: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

PKIUTIL @CFTPROD/pki_ext

Migrating the runtime environment

Migrating the catalog 1.  Load the former Transfer CFT (2.6.4 or 2.7) environment.

 2.  Export the catalog using the command CFTMI240:

CFTMI240 MIGR type=CAT, direct=FROMCAT, ifname=<catalog_2.7_filename>,

ofname=catalog_output.xml

 3.  Load the new Transfer CFT 3.2.4 environment.

 4.  Import the catalog using the command CFTMI. Replace the <catalog_filename_new_installation> with the corresponding environment variable +CFTCAT.

Example

CFTMI MIGR type=CAT, direct=TOCAT, ifname=CFTPROD/cat_out,

ofname=<catalog_filename_new_installation>

Migrating the communication media files 1.  Load the former Transfer CFT (2.6.4 or 2.7.0) environment.

 2.  Export the communication media file using command CFTMI240:

CFTMI240 MIGR type=COM, direct=FROMCOM, ifname=<com_2.7.0_filename>,

ofname=CFTPROD/com_out

 3.  Load the new Transfer CFT3.2.4 environment.

 4.  Import the communication media file using command CFTMI. Replace the <com_filename_new_installation> with the corresponding environment variable:

Example

CFTMI MIGR type=COM, direct=TOCOM, ifname=com_ouput.xml, ofname=<com_

filename_new_installation>

Transfer CFT IBM i3.3.0 Installation Guide  121

Page 129: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Migrating from Transfer CFT 3.0.1 or 3.1.3This topic describes how to migrate Transfer CFT 3.0.1 or 3.1.3 to version 3.2.4. It is divided in 2 sections, the first section describes migration for a single node architecture, and the second section multi-node architecture. Lastly there are instructions explaining what would be needed to migrate from single node architecture to multi node architecture.

See also How to use programs without menus on page 74 for help performing the migration commands.

Single node architecture

Migrating the configuration

Migrating the main configuration and UCONF parameters

Migrate PARM, PART, IDF, other static configuration objects and UCONF parameters as follows:

 1.  Load former Transfer CFT 3.0.1 or 3.1.3 environment.  See the Prerequisites for details.

 2.  Export your static configuration objects using the command CFTUTIL CFTEXT. 

CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext

 3.  Open the extract configuration files, CFTPROD/cft_ext, and update the file paths with those of the new Transfer CFT 3.2.4 installation.

 4.  Load Transfer CFT 3.2.4 environment.

 5.  Import your static configuration objects using the cftinit command. 

cftinit CFTPROD/cft_ext

Migrating PKI certificates 1.  Load former Transfer CFT 3.0.1 or 3.1.3 environment.

 2.  Export your PKI certificates using the PKIUTIL PKIEXT command. 

PKIUTIL PKIEXT fout=CFTPROD/pki_ext

 3.  Load the Transfer CFT 3.2.4 environment.

 4.  Create a new PKI internal datafile using the PKIUTIL PKIFILE command.  

PKIUTIL PKIFILE fname=+CFTPKU, mode='CREATE’

 5.  Import your PKI certificates into Transfer CFT 3.2.4 using the PKIUTIL command. 

122  Installation Guide Transfer CFT IBM i3.3.0

Page 130: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

PKIUTIL @pki-extract.conf

Migrating the runtime environment

Migrating the catalog

 1.  Load former Transfer CFT 3.0.1 or 3.1.3 environment.

 2.  Export the catalog using the command CFTMI. Replace the <catalog_filename> with the corresponding environment variable, +CFTCAT for IBM i. 

CFTMI MIGR type=CAT, direct=FROMCAT, ifname=<catalog_filename_former_

cft>, ofname=CFTPROD/cat_out

 3.  Load Transfer CFT 3.2.4 environment.

 4.  Import the catalog using the command CFTMI. Replace the <catalog_filename> with the corresponding environment variable, +CFTCAT for IBM i. 

CFTM MIGR MIGR type=CAT, direct=TOCAT, ifname=CFTPROD/cat_out,

ofname=<catalog_filename_new_cft >

Migrating the communication media files

 1.  Load former Transfer CFT 3.0.1 or 3.1.3 environment.

 2.  Export the communication media file using command CFTMI. Replace the <com_filename > with the corresponding environment variable, +CFTCOM for IBM i.

CFTMI MIGR type=COM, direct=FROMCOM, ifname=<com_filename_former_cft>,

ofname=CFTPROD/com_out

 3.  Load Transfer CFT 3.2.4 environment.

 4.  Import the communication media file using command CFTMI. Replace the <com_filename> with the corresponding environment variable,  +CFTCOM for IBM i.

CFTMI MIGR type=COM, direct=TOCOM, ifname=CFTPROD/com_out, ofname=<com_

filename_new_cft>

Transfer CFT IBM i3.3.0 Installation Guide  123

Page 131: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Multi-node architecture

Migrating the configuration

Migrating the main configuration and UCONF parameters

Migrate PARM, PART, IDF, other static configuration objects and UCONF parameters as follows:

 1.  Load former Transfer CFT 33.1.3 environment.

 2.  Export your static configuration objects using the command CFTUTIL CFTEXT. 

CFTUTIL CFTEXT type=all, fout=CFTPROD/cft_ext

 3.  Open the extract configuration files, CFTPROD/cft_ext, and update the file paths with those of the new Transfer CFT 3.2.4 installation.

 4.  Load Transfer CFT 3.2.4 environment.

 5.  Import your static configuration objects using the cftinit command. 

cftinit cft-extract.conf

Migrating PKI certificates 1.  Load former Transfer CFT 3.0.1 or 3.1.2 environment.

 2.  Export your PKI certificates using the command PKIUTIL PKIEXT. 

PKIUTIL PKIEXT fout=pki-extract.conf

 3.  Load the Transfer CFT 3.2.4 environment.

 4.  Create a new PKI internal datafile using the command PKIUTIL PKIFILE. Replace <pki_database_filename> with the value, +CFTPKU for IBM i. 

PKIUTIL PKIFILE fname=<pki_database_filename>, mode='CREATE’

 5.  Import your PKI certificates into Transfer CFT 3.2.4 using the command PKIUTIL. Replace the <prefix_character> based on your system, @ for IBM i. 

PKIUTIL @pki-extract.conf

124  Installation Guide Transfer CFT IBM i3.3.0

Page 132: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Manuallymigrate Transfer CFT

Migrating the runtime environment

Migrating the catalog

 1.  Load former Transfer CFT 3.0.1 or 3.1.2 environment.

 2.  Export all catalogs (one per node, named as cftcataXX, where XX is the node number having a range from 00 to <number of nodes - 1>) using the command CFTMI. For each catalog:

CFTMI MIGR type=CAT, direct=FROMCAT, ifname=<catalog_filename_former_

cft_for_node_<node>>, ofname=CFTPROD/cat_out<node>

 3.  Load Transfer CFT 3.2.4 environment.

 4.  Import all catalogs using the command CFTMI for each. Use the same node number for each <node> command. 

CFTM MIGR type=CAT, direct=TOCAT, ifname=CFTPROD/cat_out<node>,

ofname=<catalog_filename_new_cft><node>

Migrating the communication media files

 1.  Load former Transfer CFT  3.1.3 environment.

 2.  Export all communication media files (cftcom and cftcomXX, where XX is the node number with range from 00 to <number of nodes - 1>) using the command CFTMI. For each communication media file, you should:

 l Enter: CFTMI MIGR type=COM, direct=FROMCOM, ifname=<com_filename_for_node_manager_on_former_cft>, ofname=CFTPROD/com_out

 l For each node, enter: CFTMI MIGR type=COM, direct=FROMCOM, ifname=<com_filename_for_node_<node>_on_former_cft>, ofname=CFTPROD/com_

out<node>

 3.  Load Transfer CFT 3.2.4 environment.

 4.  Import all communication media files using command CFTMI for each. Use the same node number for each <node> command.

 l Enter: CFTMI MIGR type=COM, direct=TOCOM, ifname=com_ouput.xml, ofname=<com_filename_for_node_manager_on_new_cft> 

 l For each node, enter: CFTMI MIGR type=COM, direct=TOCOM, ifname=com_ouput_<node>.xml, ofname=<com_filename_for_node_<node>_on_new_cft> 

Single node architecture to multi-node architectureThe only difference between migrating from single node to multi node architecture and migrating from single node to single node architecture is the catalog migration step. Since there is no catalog named cftcata in multi-node, you should import the catalog exported from single node 

Transfer CFT IBM i3.3.0 Installation Guide  125

Page 133: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

architecture to the catalog of any of the nodes in the multi-node architecture.

Activate Central Governance connectivityCentral Governance simplifies the management of Transfer CFT and provides identity and access management, certificate security services,  monitoring, alerting, and web dashboard services. Central Governance replaces possible existing services from earlier Transfer CFT installations that required implementing and configuring multiple products, such as Transfer CFT Navigator, PassPort, Composer, and Sentinel.

You can perform this activation procedure only after completing an upgrade or migration to Transfer CFT 3.1.3 or higher.

OverviewThere are two ways to activate Transfer CFT to Central Governance connectivity following an upgrade procedure:

 l Automatically activate connectivity on page 126

 l Manually activate connectivity on page 127

Additional information and tasks:

 l Connect to a different Central Governance system on page 130

 l Use former configuration objects on page 130

 l View managed features on page 130

Automatically activate connectivityUNIX/Windows

The automatic activation is only available in UNIX/Windows. Please refer to the Manually activate connectivity on page 127 below for z/OS or IBM i instructions.

This section describes how to run the installer in configure mode to  enable Central Governance connectivity.

Note If running in Windows, the same user who performed the initial installation (or  same type of user) must start the installer.

PrerequisiteYou must set the UCONF parameter cg.configuration_policy if you want to override the default policy applied by Central Governance when you register a Transfer CFT in Central Governance.

126  Installation Guide Transfer CFT IBM i3.3.0

Page 134: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Activate CentralGovernance connectivity

Procedure 1.  Stop  Transfer CFT and Copilot.

 2.  Start the installer in configure mode.

GUI

 l UNIX: configure.sh –m gui

 l Windows: In Windows Start menu, select Axway Software > Axway [installation name] > Configure

Console

 3.  In the installer screen, select Configure your existing installation.

 4.  Enter the license key if required. 

 5.  Accept or modify the UI server and service mode screen values.

 6.  In the Governance Mode screen, select Central Governance.

 7.  In the CG connectivity screen, enter the Central Governance values.  For Transfer CFT z/OS installations, see Use compliant characters for the z/OS shared secret on page 129.

 8.  Click Next and complete the configure procedure.

 9.  Once completed start Copilot, which automatically completes the registration process. 

You can check in Central Governance to see that the Transfer CFT displays in the Product List.

Manually activate connectivityAll OS

This section describes how to  manually modify the Transfer CFT configuration to enable Central Governance connectivity in command line.

Prerequisites 1.  Stop Transfer CFT and Copilot if running.

 2.  Enabling Central Governance  connectivity after an upgrade implies replacing any standalone connectors. Therefor, prior to connecting to Central Governance deactivate all previously activated connectors, for example PassPort AM, PassPort PS, and Sentinel.

CFTUTIL uconfunset id=am.type

CFTUTIL uconfunset id=sentinel.xfb.enable

CFTUTIL uconfset id=pki.type, value=cft

Note When running in a z/OS environment you must additionally set the am.passport.superuser with the user that will start the Copilot server.

Transfer CFT IBM i3.3.0 Installation Guide  127

Page 135: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

 3.  Ensure that all UCONF values used to identify a Transfer CFT instance  are defined. These parameters include:

 l cft.full_hostname

 l cft.instance_id

 l cft.instance_group

Use the format:

CFTUTIL uconfset id=cft.instance_id, value=<cft_id>

You must set the UCONF parameter cg.configuration_policy if you want to override the default policy applied by Central Governance when you register a Transfer CFT in Central Governance.

ProcedureThe manual procedure consists of the following steps, which are detailed below:

 1.  Include certificates in the PKI database.

 2.  Set the UCONF parameter values for  Central Governance.

 3.  Enable Central Governance.

 4.  Start Copilot.

Include certificatesYou must include the certificate authority that is used to validate communication with Central Governance in the PKI database. You can personalize this certificate on the Central Governance side, so be sure to use the correct iname in the pkicer command.

You can use any ID for this certificate. Transfer CFT uses the certificate ID defined in UCONF to communicate with Central Governance.

Note Modify the filename syntax to accommodate your specific platform.

PKIUTIL pkicer id = 'CG_CA',

iform = 'PEM',

iname = '$CFTPKIDIR/passportCA.pem',

itype = 'ROOT',

pkifname = '$CFTPKU',

pkipassw = 'CFT',

state = 'ACT',

mode = 'CREATE'

128  Installation Guide Transfer CFT IBM i3.3.0

Page 136: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Activate CentralGovernance connectivity

After inserting the correct certificate in the PKI database, define the UCONF variable cg.ca_cert_id. This value is required so that Transfer CFT knows which certificate to use when communicating with Central Governance.

CFTUTIL uconfset id=cg.ca_cert_id, value='CG_CA'

Set UCONF valuesUse  the Central Governance installation values for the following UCONF settings. Transfer CFT uses these values to  identify Central Governance.

 l cg.host

 l cg.port

 l cg.mutual_auth_port

 l cg.shared_secret

Use the format:

CFTUTIL uconfset id=cg.host, value=<host_value>

Enable Central Governance

CFTUTIL uconfset id=cg.enable, value=yes

RegisterStart the Transfer CFT Copilot to trigger an automatic registration with Central Governance.

You can check in the Central GovernanceProduct List to confirm that the registration was successful.

Use compliant characters for the z/OS shared secretOn Transfer CFT z/OS

When setting the Central Governance "shared secret" during a Transfer CFT z/OS installation, translation issues may occur if you use certain characters. For example, if you enter !SECRET (using code page IBM-1147) the shared secret is translated to §SECRET during the Central Governance registration. Therefore, you must use compliant characters in the shared secret value when working in a z/OS environment.

Transfer CFT IBM i3.3.0 Installation Guide  129

Page 137: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

Connect to a different Central Governance systemIf Transfer CFTwas previously registered on a Central Governance system but you now want to register it on a different one, perform the steps in Manually activate connectivity and as a final step, prior to starting Copilot, reset the Central Governance registration id.

CFTUTIL uconfunset id=cg.registration_id

.

Use former configuration objectsIn Central Governance you can use the Legacy Flows feature to view and use an imported configuration. For more information, please refer to the Central Governance documentation.

View managed featuresAfter successfully upgrading and activating Central Governance connectivity, you can manage the following Transfer CFT features from Central Governance. The "Supported but not configurable" column lists features that you can retain,  though you cannot manage them from the Central Governance interface.

Feature Manage using Central Governance

Supported but not configurable using Central Governance

Folder monitoring yes (1) yes

Multi-node architecture no yes

CRONJOB no yes

Exits no yes 

Network features

IPv6 yes yes

pTCP (UNIX/Windows only) yes  yes 

UDT   (UNIX/Windows only) yes yes

130  Installation Guide Transfer CFT IBM i3.3.0

Page 138: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Activate CentralGovernance connectivity

Feature Manage using Central Governance

Supported but not configurable using Central Governance

SOCKS no yes

Heartbeat  embedded yes

Interoperability

Secure Relay  no yes

TrustedFile  no yes (Not available on IBM i)

PassPort AM embedded no (2)

PassPort PS no yes

Sentinel embedded yes

Composer no no

Protocols

PeSIT yes yes 

ODETTE no yes

EBICS  no yes

 1.  IBM i and z/OS only support folder monitoring on UNIX file systems.

 2.  If you perform a migration or upgrade from a previous version, you must migrate your PassPort AM. 

Transfer CFT IBM i3.3.0 Installation Guide  131

Page 139: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

5  Upgrade andmigrate procedures

132  Installation Guide Transfer CFT IBM i3.3.0

Page 140: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

6  Uninstall Transfer CFT

To uninstall Transfer CFT in an IBM i environment, delete the following libraries:

 l CFTPROD

 l CFTPGM

In the HFS partition remove:

l /home/cft/cft324/install

l /home/cft/cft324/runtime

 

Transfer CFT IBM i3.3.0 Installation Guide  133

Page 141: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

6  Uninstall Transfer CFT

134  Installation Guide Transfer CFT IBM i3.3.0

Page 142: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

7  Troubleshooting

Using the support toolTo assist Axway Customer Support, the CFTSUPPORT command collects useful information from a Transfer CFT environment including the configuration, Unified Configuration parameters (UCONF), catalog information, log files, and so on. This information is then packaged and stored in a tar file in the specified IFS folder.

Collected information for the Transfer CFT Transfer CFT IBM i platform includes these different CFTPROD/SUPOUT file members:

File Comment

ABOUT  About information

CFTEXT CFT parameter extract

CFTOUT CFT jobs outputs

COPJLOG.CSV Primary Copilot QPJOBLOGs

COPJLOG2.CSV Secondary Copilot QPJOBLOGs

COPOUT Copilot jobs outputs

COPTRC Copilot traces

JLOG.CSV Primary CFT QPJOBLOGs

JLOG2.CSV Secondary CFT QPJOBLOGs

LISTCAT Brief listcat

LISTCATD Debug listcat

LISTCATF Full listcat

LISTCOM listcom

LISTNODE Listnode

LISTPKI Listpki output

Transfer CFT IBM i3.3.0 Installation Guide  135

Page 143: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

7  Troubleshooting

File Comment

LISTPKID Listpki debug output

LISTPKIF Listpki full output

LISTUCONF Listuconf output

Using the CFTSUPPORT commandThe CFTSUPPORT command executes the CFTSUPPORT program, which retrieves information about the Transfer CFT and stores it in a tar file. 

You can use Transfer CFT IBM i command line to execute the command:

 1.  Enter the CFTSUPPORT command and press PF4.

 2.  Enter the IFS path where the CFTSUPPORT.tar file should be created. If the IFS path does not exist it will be created. 

Note Alternatively, from the CFT menu select 3. Administration commands then 2. Submit CFT support request.

If the generated CFTSUPPORT.tar  is too large, you can compress it prior to sending it to Axway support.

Example

In the following example the CFTSUPPORT.tar is created in /home/cft/cftsupport/.

CFTSUPPORT IFSPATH('/home/cft/cftsupport')

136  Installation Guide Transfer CFT IBM i3.3.0

Page 144: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

Tracking Transfer CFT IBM i activities

Tracking Transfer CFT IBM i activitiesTransfer CFT activities are tracked using the:

 l Transfer CFT Catalog, which can be queried by CFTUTIL, Copilot, and CFTAPI

 l Transfer CFT LOG, a file designated by the CFTLOG configuration command [A]FNAME parameter. This file contains, for example, INIT COMPLETE, SEND TREATED and SERVER SESSION OPENED

 l Message queue echoing the Transfer CFT logging associated with the user designated by NOTIFY in the CFTLOG command:

 l Specific values: NOTIFY='______' / NOTIFY='OP______'

 l Echo level: OPERMSG= 0 to 255

When monitoring operating incidents, information may be logged in the:

 l Message queue that receives specific incident messages from the interface functions; by default, the function associated with the submitter user (same as NOTIFY='______')

 l QSYSOPR message queue that receives messages generated by specific network or work-management commands, and any Transfer CFT file and data management error messages

 l JOBLOG (history message queue and QPJOBLOG spool file), LOGCLPGM parameter in the *JOBD:

Logging level (0 to 4) (default = 4)

Severity level (00 to 99) (default = 50)

MSGQ -> spool copy control (*MSG/*SECLVL/*NOLIST)(default = *NOLIST)

 l Transfer CFT IBM i LOG (QHST) which records job start and end times, status changes for network objects and so on

 l Interactive log file (DSPJOBLOG)

The output spool files (QPRINT) contain:

 l CFTUTIL batch execution reports

 l Messages corresponding to CFT logging, if Transfer CFT is run without a LOG file (without the CFTLOG command)

 l Any internal CFT traces (MTRACE, PTRACE and FTRACE), a copy of the messages from the interface functions

 l Any traces taken at function level

 l Any network traces

 l Reports from procedures submitted by Transfer CFT (see the transfer variables that can be retrieved as symbolic variables)

CFT ACCNT, accounting, the file designated by the CFTACCNT configuration command [A]FNAME parameter, is used to store information on all terminated transfers.

Transfer CFT IBM i3.3.0 Installation Guide  137

Page 145: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

7  Troubleshooting

Note The file and data management systems display a system code (40000000 < SC < 5FFFFFFF) if an error is detected on transferred files. An associated error label, when it is not stored in any of the ways described above, can be retrieved from a file containing all CFT file management system error codes and labels:DSPPFM FILE (CFTPGM/FMDM3ERR).The hexadecimal value of the error code must be used in the search profile.

In the line-sharing mode, unlike the exclusive mode, Transfer CFT checks the status of the line without implementing it. If the line is not operational, a message is displayed:

From.....: CFT 06/12/12 15:56:04

CF1LX021 : This line is out of order.

After it has been implemented manually:

CF1LX021 line implemented.

From.....: CFT 06/12/12 15:56:04

CF1LX021 : Now this line is operational.

All messages stored in the log are described in the Transfer CFT 3.2.4 User's Guide  sub-book  Messages and Codes. There are a few exceptions when messages are not stored in the log, for example messages that are self-explanatory and OS related. 

For more information, refer to the Transfer CFT User Guide.

138  Installation Guide Transfer CFT IBM i3.3.0

Page 146: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

IFS access error codes: DIAGP

IFS access error codes: DIAGPError code Description

1 Kernel error

13 Invalid key

14 Invalid record address

15 File does not exist

16 Access not authorized

17 Inconsistent file structure

18 Record too big

19 Invalid record size

1A End of file reached

1B Record locked by another user

1C Record not locked

1D Record not found

1E Record already exists

1F Directory path error

20 File name error

21 File descriptor error

22 File not open

23 Invalid mode

24 File access not authorized

25 Invalid file attribute(s)

26 Invalid access unit

Transfer CFT IBM i3.3.0 Installation Guide  139

Page 147: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

7  Troubleshooting

Error code Description

27 System dependence error

28 Backspace not possible

29 File already open

2A File already exists

2B File read error

2C File write error

2D Secondary key duplicated

2E Empty file

2F Security attribute mismatch

30 File not empty

31 File access conflict

FF System error

140  Installation Guide Transfer CFT IBM i3.3.0

Page 148: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Application Programming Interfaces, or APIs, are a set of functions   that use a service. The service is followed by an application program.  

The programming interfaces and programming language are related. The   services can be called by programs in COBOL or in C language as described in this  section.

About Transfer CFT servicesYou can query information related to correctly completed transfers.   This information can be accessed in the communication structure. 

A description   of this structure sub-assembly  is provided in the cftapi.h   for the C language, and cftapi.cop   for COBOL.

Restrictions l Visual Basic APIs are available on PCs  only.

Transfer CFT IBM i3.3.0 Installation Guide  141

Page 149: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Catalog querying services This service provides access to the  Transfer CFT catalog entries, for   querying and modification, and enables you to sort the selected catalog   entries. Additionally, you can sort the current selection in memory. 

Note The communication structure   in Transfer CFT enables you to recuperate catalog fields, such   as an identifier, that exceed 8 to 32 characters.

Function Use

OPEN Open catalog fileThis function:

 l Allocates   the catalog file

 l Opens   the file

 l Reserves   an internal control block

 l Initializes   the internal block parameter 

SELECT Specify the selection criteriaThis function:

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

SELECT240 Specify the selection criteriaThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

NEXT Read next entry in the catalogThis function:

 l Reads   the next entry

 l Sets   the "catalog entry data" areaThe first call to this function must be preceded by a SELECT.

Transfer CFT IBM i3.3.0 Installation Guide  142

Page 150: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

NEXT240 Read next entry in the catalogThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Reads   the next entry

 l Sets   the "catalog entry data" area

MODIFY Modify the state of the current catalog entry or delete   this entry from the catalogThis function:

 l Retrieves   the last entry read from the internal control block

 l Checks   the state of this entry

 l Sends   the modification request to  Transfer CFT

SORT Sort the selected catalog entriesThis function:

 l Close   the catalog file

 l De-allocates   the file

 l Frees   the internal control block

 l Resets   the internal control block parameter

DO Execute the current selection and the requested sort in   memory

CLOSE Close catalog file

Transfer CFT IBM i3.3.0 Installation Guide  143

Page 151: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer servicesUse the transfer services to send transfer control commands to Transfer   CFT, with or without a syntax analysis   of these commands. The programming interface proposes a function integrating   a syntax analysis of the command to detect any errors, at the source,   and a function without syntax analysis, which provides a much smaller   coding volume.

The transfer services functions:

 l Check the validity   of the command name

 l Analyze the syntax   of the command parameters, if the function using the syntax analyzer is   used

 l Place the command   in the  Transfer CFT communication medium

The processing performed by  Transfer CFT is totally asynchronous.

The return code only provides an indication that the function has effectively   been taken into account but does not necessarily mean that  Transfer CFT   has executed the command correctly. A return code indicating the success   of the function only means that the command has been correctly placed   in the communication medium.

Function Use

SEND Send transfer request: file, message or reply

RECV Receive transfer request

HALT Interrupt one or more send or receive transfers with a   given partner.The interrupted transfers are set to the "H"   state and can be restarted at the partner's request.

KEEP Suspend one or more send or receive transfers with a given   partner.The interrupted transfers are set to the "K"   state and can only be restarted by a START command.

START Start one or more send or receive transfers

DELETE Delete a catalog entry and any transfer in process associated   with it

END Set a transfer status to executedThe transfer is set to the "X" state. This indicates   that end-of-transfer procedure has been correctly executed.

SUBMIT Submit the end-of-transfer procedure

SHUT Shut down  Transfer CFT

Transfer CFT IBM i3.3.0 Installation Guide  144

Page 152: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

SWITCH Switch monitoring files, LOG, STATS...

CLOSEAPI Free resources allocated at opening of communication medium:   memory, network, file

COM Define communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request

Transfer CFT IBM i3.3.0 Installation Guide  145

Page 153: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Synchronous communication servicesThis topic describes  Transfer CFT synchronous communication services. 

Description of functionsFunction Use

COM Set the communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request after a request of the following types: SEND,   RECV, HALT, KEEP, START, RESUME, DELETE, END, SUBMIT, SWITCH, PURGE.The information is stored in a cftApiInf-type structure:

 l Transfer   state 

 l Diagnostic   

 l Diagnostic   protocol 

 l Value   of the PART field of CFTPARM 

 l Transfer   identifier (IDT) 

 l Local   transfer identifier (IDTU) 

 l Transfer   type (single, cyclical, diffusion list, collection, file group) 

 l Public   reference of the transfer (only for a single transfer in Send)The GETXINFO action returns an error if the communication   medium is not synchronous.

Note The public   reference of the transfer is a character string of variable length. In   the PESIT protocol, it contains 'pi13.pi3.pi4.pi11.pi12.pi61.pi62'.

Transfer CFT IBM i3.3.0 Installation Guide  146

Page 154: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About Web servicesThis documentation describes the Transfer CFT Web services interface option, and provides instructions for getting started with Web services, executing a SEND file transfer request, and retrieving the request details from the catalog.

Web services provide a way for applications to use software services over networks such as the Internet. Client applications  use the Web Services Description Language (WSDL) to do this and exchange data using XML. Since you can use URLs, HTTP, and XML to access Web services, applications running on a variety of platforms and using various languages can access XML Web services. 

You can use  Web services to access all of the main functions for   managing Transfer CFT such as:

 l Configure Transfer   CFT: create, modify, and view configuration objects

 l Monitor Transfer   CFT: consult the log, the catalog, and transfer statistics

 l Create transfers:   create a new file transfer, a message or transfer reply

License keyYou require a license key that includes the Web services option for the Transfer   CFT product. To request a key,   contact your Axway sales representative. 

About the WSDL fileTo use Web services with Transfer CFT, you need a WSDL1 file. Your installed Transfer CFT product comes with a WSDL file that describes the operations, operation attributes,  requests and response structure. You can access the WSDL file from your local installation at:

 l On IBM i: <install_directory>/distrib/copilot/wsdl/copilotcft.wsdl

Using the WSDL file, you can automatically generate a Web services client. You can use an open source Web service Java toolkit, for example Axis from The Apache Software Foundation, to create this Web services client. 

The Web services requests sent by the client are then processed on the Transfer CFT Copilot server listening port.

Additional resourcesFor more information on the following subjects, go to:

 l WSDL: www.w3schools.com/wsdl/ 

 l SOAP: www.w3schools.com/soap/

1Web Services Description Language

Transfer CFT IBM i3.3.0 Installation Guide  147

Page 155: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

 l Axis: axis.apache.org/axis/

You can find SOAP samples and documentation at:

 l Transfer CFT Web services documentation: <cft_installation_directory>/distrib/copilot/wsdl/doc/index.html 

 l SOAP request samples:<cft_installation_directory>/distrib/copilot/wsdl/sample 

Note For UNIX/Windows systems, for other platforms refer to the platform specific paths.

General restrictionsThe Web services process can receive any SOAP request that conforms   to the W3C specifications and WS-I Recommendations.

The following restrictions apply to Transfer CFT Web services:

 l The time zone offset   is not supported for XSD types Time   and DateTime.

 l Element attributes   are not supported, nor parsed. This means that if there are incorrect   spaces in names for any operation attribute or message, they are skipped and   no error is returned. Exceptions are made to support WS-I recommendations.   

WS-I recommendationsVerify that the correct option is set if your client requests have to   be checked to conform to WS-I recommendations. To do this,  set the UCONF [copilot.webservices.wsicomplience] identifier   to yes. 

The following WS-I constraints are checked by the GUI server for the   XML representation of SOAP messages. These constraints include:

 l SOAP Header constraints:

 o R1009: A MESSAGE   MUST NOT contain processing instructions

 o R1012: A MESSAGE   MUST be serialized as either UTF-8 or UTF-16

 l SOAP Body constraints:

 o R1006: A MESSAGE   MUST NOT contain soap:encoding

 l Style attributes on any element that is a child of soap:Body

 o R1007: A MESSAGE   described in an rpc-literal binding MUST NOT contain soap:encodingStyle   attribute on any elements that are grandchildren of soap:Body

 o R1014: The   children of the soap:Body element in a MESSAGE MUST be namespace qualified

For more information on WS-I recommendations, visit http://www.ws-i.org

Transfer CFT IBM i3.3.0 Installation Guide  148

Page 156: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer CFT JPITransfer CFT delivers a java programming package in its installation folder. This package includes JPI requests, java configuration examples, and documentation necessary to perform local or remote monitoring via logs, transfer requests and control.

Note As of Transfer CFT 3.1.3 SP8, you can retrieve a transfer that is in the pre, post, or ack processing state. See the Transfer JPI documentation for  details.

The JPI package is located at: <installation_directory>\home\distrib\jpi

Transfer CFT IBM i3.3.0 Installation Guide  149

Page 157: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer CFT JPITransfer CFT delivers a java programming package in its installation folder. This package includes JPI requests, java configuration examples, and documentation necessary to perform local or remote monitoring via logs, transfer requests and control.

Note As of Transfer CFT 3.1.3 SP8, you can retrieve a transfer that is in the pre, post, or ack processing state. See the Transfer JPI documentation for  details.

The JPI package is located at: <installation_directory>\home\distrib\jpi

Transfer CFT IBM i3.3.0 Installation Guide  150

Page 158: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About Transfer CFT services in CThis section begins with this topic which provides information about using   the  Transfer CFT services in C language. It also contains topics   that describe how to use the following services in   C language. 

This page describes the Transfer   CFT programming interface. The programming interface is implemented by   the calling application module link, with the  Transfer CFT interface function   modules.

The library of object modules supplied provides everything the programmer   can requires.

This library also contains the file cftapi.h   to be included in the application using the  Transfer CFT programming interfaces.

Call syntaxSyntax rc = cftxx (verb,&ptr,param)

Element Definition

cftxx cftai: simple Transfer   CFT catalog querying servicescftaix: extended    Transfer CFT catalog querying servicescftau:  transfer   services with syntax analysiscftac: transfer   services without syntax analysis

verb Service requested

ptr Address of the internal control block

param Parameters specific to the requested service

rc Return code

RestrictionsThe cftau function must   not be called from an ASIT exit.

Return codesThe return codes are returned by the programming interfaces in the form   of mnemonics.

Note It is strongly recommended that you test the return codes of services   provided by the  Transfer CFT programming interfaces through mnemonics.   The corresponding values may change without notice.

The return codes are listed in the cftapi.h source file.

Transfer CFT IBM i3.3.0 Installation Guide  151

Page 159: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About Transfer CFT services in CThis section begins with this topic which provides information about using   the  Transfer CFT services in C language. It also contains topics   that describe how to use the following services in   C language. 

This page describes the Transfer   CFT programming interface. The programming interface is implemented by   the calling application module link, with the  Transfer CFT interface function   modules.

The library of object modules supplied provides everything the programmer   can requires.

This library also contains the file cftapi.h   to be included in the application using the  Transfer CFT programming interfaces.

Call syntax

Syntax rc = cftxx (verb,&ptr,param)

Element Definition

cftxx cftai: simple Transfer   CFT catalog querying servicescftaix: extended    Transfer CFT catalog querying servicescftau:  transfer   services with syntax analysiscftac: transfer   services without syntax analysis

verb Service requested

ptr Address of the internal control block

param Parameters specific to the requested service

rc Return code

RestrictionsThe cftau function must   not be called from an ASIT exit.

Return codesThe return codes are returned by the programming interfaces in the form   of mnemonics.

Note It is strongly recommended that you test the return codes of services   provided by the  Transfer CFT programming interfaces through mnemonics.   The corresponding values may change without notice.

The return codes are listed in the cftapi.h source file.

Transfer CFT IBM i3.3.0 Installation Guide  152

Page 160: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About cftapi2The catalog functions enable you to query and modify the catalog. These functions also include a method to recover information about the Transfer CFT that is using the catalog.

Additionally, the API catalog supports 32 character identifiers and 512 character file names.

Data structureThe data structures that are used by the API are as follows:

 l Current session in progress: CftApi2Session

 l Catalog: CftApi2Catalog

 l Selection: CftApi2Selection

 l Saved catalog record: CftApi2Record

The programmer can set pointers to these data structures. These are then allocated and initialized by the API.

Return code valuesThe return code values are available in the cftapi2.h header file, located in the Transfer_CFT/home/inc directory (for UNIX/Windows), in the section Error code fields.

API functions

Service CftApi2Session *ipcai2_initialize ()

Definition Initializes the API.

Parameter None.

Return value This function returns a pointer to the CFTApi2Session. If the returned value is NULL, the session cannot be initialized.

 

Service long ipcai2_get_errno(CftApi2Session * session)

Definition Recuperates the latest error code.

Parameter session: Pointer to the CftApi2Session is returned by the initialization function ipcai2_initialize()

Transfer CFT IBM i3.3.0 Installation Guide  153

Page 161: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Return value

The last error code for the API for this session.

Remarks This function can be used after all calls to the API except for ipcai2_initialize() and ipcai2_finalize().

 

Service long ipcai2_get_errno_str(CftApi2Session * session, char *buffer, int bufflen)

Definition Recuperates the error message.

Parameter session: Pointer to the CftApi2Session structure is returned by the initialization function ipcai2_initialize()buffer: The buffer that will be informed of the error message. bufflen: Length of the buffer sent to the API.

Return value If the return code is positive, it contains the last error code for the API for this session. If the Return code is negative, the buffer is too short. If this happens, and the code is equal to –n where n is equal to the required length.

Remarks This function can be used after all calls to the API except for ipcai2_initialize() and  ipcai2_finalize().

 

Service long ipcai2_finalize(CftApi2Session * session)

Definition Closes the API.

Parameter session: Pointer to the CftApi2Session structure returned by the initialization function ipcai2_initialize()

Return value

None.

Remarks None.

 

Service CftApi2Catalog *ipcai2_catalog_open(CftApi2Session * session, char *catalog_fname)

Definition Opens the Transfer CFT catalog file.

Transfer CFT IBM i3.3.0 Installation Guide  154

Page 162: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Parameter session: Pointer to the CftApi2Session structure returned by the initialization ipcai2_initialize()catalog_fname: Name of the catalog file. If the file name is "" the API opens the catalog file by default, for example _CFTCATA for Transfer CFTUNIX.

Return value

This function returns a pointer to the CftApi2Catalog structure. If the returned value is NULL, the catalog cannot be opened and the error code is returned by calling ipcai2_get_errno().

Remarks None

 

Service long ipcai2_catalog_reload_cache(CftApi2Catalog *catalog)

Definition Reloads the catalog cache.

Parameter catalog: Pointer to the catalog returned by ipcai2_catalog_open()

Return value None.

Remarks None.

 

Service long ipcai2_catalog_close(CftApi2Catalog * catalog

Definition Closes the catalog.

Parameter catalog: Pointer to the catalog returned by ipcai2_catalog_open()

Return value Calling  ipcai2_get_errno() ou ipcai2_get_errno_str()  enables you to recuperate the return code for this function.

Remarks None.

 

Service CftApi2Selection *ipcai2_catalog_selection_new(CftApi2Catalog *catalog)

Definition New selection in the catalog.

Parameter catalog: The pointer to the catalog returned by ipcai2_catalog_open()

Return value This function returns a pointer to a CftApi2Selection structure. If the returned value is NULL the selection cannot be initialized and an error code is returned by calling ipcai2_get_errno().

Transfer CFT IBM i3.3.0 Installation Guide  155

Page 163: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Remarks None.

 

Service long ipcai2_catalog_selection_ref(CftApi2Selection *selection)

Definition References a selection.

Parameter Selection: The pointer for the selected structure returned by calling ipcai2_catalog_selection_new()

Return value

Negative or null: Error, recuperated the error code from ipcai2_get_errno() or ipcai2_get_errno_str().Positive: Total number of sessions referenced after this call.

Remarks A selection can be referenced several times, and must be referenced at least one time before it is used.

 

Service long ipcai2_catalog_selection_set(CftApi2Selection * selection, char *param, char *value)

Definition Initializes a parameter selection.

Parameter selection: Pointer for the selected structure referenced by ipcai2_catalog_selection_ref()param: Modify selection parameter. Selection parameter available in cftapi2.h under “Selection parameters” section: CFTAPI2_SELECTION_*value: Parameter value in a character string

Return value

None.

Remarks None.

 

Service long ipcai2_catalog_selection_next(CftApi2Selection *selection)

Definition Executes a selection.

Parameter selection: Pointer for the selection is referenced by ipcai2_catalog_selection_ref()

Return value

A call to ipcai2_get_errno() ou ipcai2_get_errno_str() enables you to recover the return code for this function.

Remarks None.

 

Transfer CFT IBM i3.3.0 Installation Guide  156

Page 164: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Service long ipcai2_catalog_record_get(CftApi2Selection * selection, char *param, char *buffer, int bufflen)

Definition Recovers a saved field from the selected catalog.

Parameter selection: Pointer for the selection structure is referenced by ipcai2_catalog_selection_ref().param: Parameter to be recovered. The parameter to be recovered is available in cftapi2.h in the “Catalog record fields” section: CFTAPI2_RECORD_*buffer: Buffer that will be informed with the parameter valuebufflen: Length of the buffer sent by the API

Return value

If the Return code is positive it contains the last API error code for this session. If the return code is negative, the buffer is too short and the code is equal to –n where n is the required length for the buffer. 

Remarks None.

 

Service long ipcai2_catalog_selection_unref(CftApi2Selection *selection)

Definition De-lists a selection.

Parameter selection: Pointer to a selection structure that references  ipcai2_catalog_selection_ref()

Return value

Negative: Error, recovered the error code by calling ipcai2_get_errno() or ipcai2_get_errno_str()Null: Okay, and no other referred sessions.Positive: Total number of referred sessions after this call.

Remarks None

 

Service long ipcai2_catalog_selection_delete(CftApi2Selection *selection)

Definition Deletes a selection.

Parameter selection: Pointer to a selection that is not referred by calling ipcai2_catalog_selection_unref()

Return value

A call to ipcai2_get_errno() or ipcai2_get_errno_str()  enables you to recover the Return code for this function.

Remarks None.

 

Transfer CFT IBM i3.3.0 Installation Guide  157

Page 165: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Service long ipcai2_transfert_change_state(CftApi2Selection * selection, char state)

Definition Modifies the transfer state for the selected catalog.

Parameter selection: Pointer to a selection carried out by ipcai2_catalog_selection_next()

Return value None.

Remarks The Transfer CFT API must have already opened the communication medium.

 

Service long ipcai2_catalog_info_get(CftApi2Catalog *catalog, char *param, char *buffer, int bufflen)

Definition Recovers catalog information.

Parameter catalog: Pointer to the catalog structure returned by ipcai2_catalog_open()param: Recover parameter is available in  cftapi2.h under the “Catalog information parameters” section heading: CFTAPI2_CAT_INFO_*buffer: Buffer that will be informed of the parameter value. bufflen: Length of the buffer sent to the API.

Return value

If the Return code is positive it contains the last API error code for this session. If the return code is negative, the buffer is too short. The code is equal to –n ,where the n is equal to the required length.

Remarks None.

 

Service long ipcai2_monitor_info_get(CftApi2Catalog *catalog, char *param, char *buffer, int bufflen)

Definition Recovers information about the Transfer CFT.

Parameter catalog: Pointer to the catalog returned by ipcai2_catalog_open()param: Parameter to recover. The parameter is available in  cftapi2.h under “Monitor information parameters” topic  : CFTAPI2_MON_INFO__*buffer: Buffer that was provided the parameter value .bufflen: Length of the buffer sent to the API.

Return value

If the return code is positive, it contains the last API error code for the session. If the return code is negative, the buffer is too short. In this case, the code is equal to –n where n is the required length.

Remarks None.

Transfer CFT IBM i3.3.0 Installation Guide  158

Page 166: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Examples of API usage

The heading file cftapi2.h and the commented example source files are delivered with the product. 

Transfer CFT IBM i3.3.0 Installation Guide  159

Page 167: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer CFT catalog query servicesThis service provides access to the  Transfer CFT catalog entries, for   querying and modification, and enables you to sort the selected catalog   entries. Additionally, you can sort the current selection in memory. 

Note The communication structure   in Transfer CFT enables you to recuperate catalog fields, such   as an identifier, that exceed 8 to 32 characters.

Function Use

OPEN Open catalog fileThis function:

 l Allocates   the catalog file

 l Opens   the file

 l Reserves   an internal control block

 l Initializes   the internal block parameter 

SELECT Specify the selection criteriaThis function:

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

SELECT240 Specify the selection criteriaThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

NEXT Read next entry in the catalogThis function:

 l Reads   the next entry

 l Sets   the "catalog entry data" areaThe first call to this function must be preceded by a SELECT.

Transfer CFT IBM i3.3.0 Installation Guide  160

Page 168: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

NEXT240 Read next entry in the catalogThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Reads   the next entry

 l Sets   the "catalog entry data" area

MODIFY Modify the state of the current catalog entry or delete   this entry from the catalogThis function:

 l Retrieves   the last entry read from the internal control block

 l Checks   the state of this entry

 l Sends   the modification request to  Transfer CFT

SORT Sort the selected catalog entriesThis function:

 l Close   the catalog file

 l De-allocates   the file

 l Frees   the internal control block

 l Resets   the internal control block parameter

DO Execute the current selection and the requested sort in   memory

CLOSE Close catalog file

Call syntaxThese services enable you to query the catalog either with or without   specific criteria.

rc = cftai (verb,&ptr,param)

rc = cftaix (verb,&ptr,param)

Where:

 l rc is the return   code (int)

 l verb is the command   that you want to process (char *)

 l ptr contains the   address of an internal control block (char *) completed on return of an   OPEN service call. It must be provided and defined to call other functions

 l param points to   the parameters specific to each function

The available verbs are listed in the following table.

Transfer CFT IBM i3.3.0 Installation Guide  161

Page 169: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

<verb> Service

OPEN Open catalogSELECT Define selection criteriaNEXT Read next entryMODIFY Modify catalog entry stateSORT cftaix only

Sort   the selected catalog entriesDO cftaix only

Do the current selection and the requested   sort in memoryCLOSE Close catalog

The available <param> are listed in the following table.

<verb> <param> ExplanationOPEN cat Path name or logical name of the catalog file. If the name   is 

blank, Transfer CFT uses a default name.

Transfer CFT IBM i3.3.0 Installation Guide  162

Page 170: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

SELECTand SELECT240

&cftsel Selection criteria according to the format described in   the "Selection data description"   in the cftapi.h file. 

 l cftsel230T for SELECT service 

 l cftsel240T for SELECT240 serviceAll the   fields must be defined by left-aligned character strings. If a field is   equal to binary zeros, it is considered not selective.This structure can contain:

 l The size   of the selection criteria field (slength) and the size of the field supporting   the catalog entry (clength) in order to avoid recompiling the application   program if these two fields are extended.

 l The transfer   start and end date (BDATE and EDATE) to select transfers performed between   these two dates.

 l A field   can be composed of a mask with the special characters "?" and   *". The "?" character replaces any character. The "*"   character replaces a character string of any length. 

 Examples: A*D replaces ABCD, ABCED or AID A??D replaces ABCD, AXYD or AQZD *CD replaces ABECD, YXZCDor TYUICD ?CD replaces ACD, XCD or ZCD ?B* replaces ABCDEF, XBZWEO or *KBWXCV ???? replaces ABCD, XYZW or HGFD

You should initialize the following: 

 l The param   field to binary zero before defining it 

 l The slength   and clength by  "itoa()"cftaix onlyThe selection is only taken into account at the time the   DO service is called.

NEXTandNEXT240

&cftcat Next catalog entry according to the format described in   the "Selection data description"   in the cftapi.h file.

 l cftcatT for NEXT service 

 l cftcat240T for NEXT240 service

Transfer CFT IBM i3.3.0 Installation Guide  163

Page 171: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

MODIFY &nstate New state of a transfer to be placed in the catalog entry   previously read:

 l ‘D’ at   Disposal: only valid if the former state is H or K

 l ‘H’ Hold:   only valid if the former state is D, C   or K

 l ‘K’ Keep:   only valid if the former state is D, C or H

 l ‘X’ eXecuted:   only valid if the former state is T

 l ‘P’ Purge:    deletes   the catalog entry*. It is only valid if the current state is D, H, K,   T or X

SORT param cftaix onlySort options as described in the "Sort structure of the selected catalog entries"   in the cftapi.h file. The function is only taken into account at   the time the DO service is called.

DO " "  CLOSE " "  

Return codesThe following return codes apply to all services.

Mnemonic DescriptionCAPI_NOERR No errorCAPI_FUNC_UNDEF Command not valid or service refused by the operating security   

system CAPI_INT_PTR <ptr> parameter invalidOPEN code onlyCAPI_MEM_GET Memory allocation errorCAPI_CAT_ALLOC cftai only

Catalog file allocation errorCAPI_CAT_OPEN Catalog file opening problemSELECT code onlyCAPI_SEL_DIRECT DIRECTION criterion incorrectCAPI_SEL_TYPE TYPE criterion incorrectCAPI_SEL_STATE STATE criterion incorrectCAPI_CAT_EMPTY Catalog emptyCAPI_CAT_SELECT cftaix only

Selection incorrectCAPI_SEL_DATE EDATE value < BDATE valueCAPI_SEL_FDATE FDATE criterion incorrectCAPI_SEL_CDATE CDATE criterion incorrect

Transfer CFT IBM i3.3.0 Installation Guide  164

Page 172: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

CAPI_SEL_BDATE BDATE criterion incorrectCAPI_SEL_DATE EDATE   criterion incorrectNEXT code onlyCAPI_CAT_EOF End of catalog fileCAPI_CAT_READ Catalog file read errorMODIFY code onlyCAPI_CAT_MODIFY cftaix only

Modification errorCAPI_MOD_OSTATE State invalidCAPI_MOD_NSTATE Requested new state incorrectCAPI_INT_ERR2 Internal errorCAPIO_COM_OPEN Communication medium opening errorCAPI_COM_WRITE Communication medium write errorCAPI_COM_CLOSE Communication medium closing problemSORT code only (cftaix only)CAPI_CATSORT sort incorrectDO code only (cftaix only)CAPI_CAT_CLOSE Error on closing the catalogCAPI_CAT_OPEN Error on opening the catalogCAPI_CAT_EMPTY Catalog empty or no record selectedCAPI_ERREXEC Execution errorCLOSE code onlyCAPI_MEM_FREE Memory de-allocation errorCAPI_CAT_FREE Catalog file de-allocation errorCAPI_CAT_CLOSE Catalog file closing error

Transfer CFT IBM i3.3.0 Installation Guide  165

Page 173: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Synchronous communication servicesThis topic describes  Transfer CFT synchronous communication services. 

Description of functions

Function Use

COM Set the communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request after a request of the following types: SEND,   RECV, HALT, KEEP, START, RESUME, DELETE, END, SUBMIT, SWITCH, PURGE.The information is stored in a cftApiInf-type structure:

 l Transfer   state 

 l Diagnostic   

 l Diagnostic   protocol 

 l Value   of the PART field of CFTPARM 

 l Transfer   identifier (IDT) 

 l Local   transfer identifier (IDTU) 

 l Transfer   type (single, cyclical, diffusion list, collection, file group) 

 l Public   reference of the transfer (only for a single transfer in Send)The GETXINFO action returns an error if the communication   medium is not synchronous.

Note The public   reference of the transfer is a character string of variable length. In   the PESIT protocol, it contains 'pi13.pi3.pi4.pi11.pi12.pi61.pi62'.

Call syntaxrc = cftau (verb,param)

rc = cftac (verb,param)

Where:

 l cftau indicates   that syntax analysis is requested cftac indicates that syntax analysis is not requested

 l <verb> is   the command that you want to process

 l <param> is   a character string of variable length that contains the command parameters.   The end of the field is defined by a character initially set to low-value

 l <rc> is the   return code

Transfer CFT IBM i3.3.0 Installation Guide  166

Page 174: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

The available <verbs> are listed in the following table.

<verb> Service

COM Communication mode

GETXINFO Retrieving information about a transfer made from a synchronous   request

The available <param> are listed in the following table.

<verb> <param> Description

com 

param 

The COM command parameter structure is as follows: <medium   type> = <Medium name>The medium type consists in an uppercase letter:

 l 'F' for   file

 l 'T' for the TCP/IP synchronous medium

 l 'C' for   the configuration file (ConfigFileName)

The medium name is the:

 l Filename,   if the medium type is 'F'

 l Name   of the communication channel, if the medium type is 'T'

 l Name   of the configuration file containing the medium of communication characteristics,   if the medium type is C. 

getxinfo xinf Information about a transfer in the format described in   the cftapi.h file. 

Step procedureUse the COM command to define the synchronous medium.

 1.  Open the synchronous communication. 

cftau ("COM",C=<configuration file>);

configuration file is a text file that contains the following lines :

# TCP/IP COMMUNICATION

TYPE = TCP

NAME = xhttp://localhost:<COM Synchron port value>

TIMEOUT = <timeout to reach>

 2.  Write the command. This is not specific to synchronous mediums.

Transfer CFT IBM i3.3.0 Installation Guide  167

Page 175: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

cftau (verb,param)

 3.  Retrieve information using the GETXINFO service. 

cftApiInfT cftinfo;

cftau("GETXINFO",(char*) &cftinfo);

To view the synchronous communication template containing details and an example, see tcftsyn.

Return codes

Mnemonic Description

CAPI_NOERR No error.

CAPI_FUNC_UNDEF Command not valid.

CAPI_COM_OPEN Communication medium opening error.

CAPI_COM_WRITE Communication medium write error.

CAPI_COM_CLOSE Communication medium closing problem.

CAPI_COM_ALLOC Communication medium allocation problem.

CAPI_COM_ERR Communication medium not available on this system.

Transfer CFT IBM i3.3.0 Installation Guide  168

Page 176: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer services in CTransfer services allow actions to be taken   on transfers with the security system performing an authorization check   when the request is submitted, and not when the request is processed by   the monitor, the behavior of unprotected IPC with an error message in   the log file. 

The application can detect commands that do   not have permission for access. This lightens the workload, improving  Transfer CFT performance, and reducing the cluttering   of the communication medium by invalid requests.

Use the transfer services to send transfer control commands to Transfer   CFT, with or without a syntax analysis   of these commands. The programming interface proposes a function integrating   a syntax analysis of the command to detect any errors, at the source,   and a function without syntax analysis, which provides a much smaller   coding volume.

The transfer services functions:

 l Check the validity   of the command name

 l Analyze the syntax   of the command parameters, if the function using the syntax analyzer is   used

 l Place the command   in the  Transfer CFT communication medium

The processing performed by  Transfer CFT is totally asynchronous.

The return code only provides an indication that the function has effectively   been taken into account but does not necessarily mean that  Transfer CFT   has executed the command correctly. A return code indicating the success   of the function only means that the command has been correctly placed   in the communication medium.

Function Use

SEND Send transfer request: file, message or reply

RECV Receive transfer request

HALT Interrupt one or more send or receive transfers with a   given partner.The interrupted transfers are set to the "H"   state and can be restarted at the partner's request.

KEEP Suspend one or more send or receive transfers with a given   partner.The interrupted transfers are set to the "K"   state and can only be restarted by a START command.

START Start one or more send or receive transfers

DELETE Delete a catalog entry and any transfer in process associated   with it

Transfer CFT IBM i3.3.0 Installation Guide  169

Page 177: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

END Set a transfer status to executedThe transfer is set to the "X" state. This indicates   that end-of-transfer procedure has been correctly executed.

SUBMIT Submit the end-of-transfer procedure

SHUT Shut down  Transfer CFT

SWITCH Switch monitoring files, LOG, STATS...

CLOSEAPI Free resources allocated at opening of communication medium:   memory, network, file

COM Define communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request

Call syntax rc = cftau (verb,param)

rc = cftac (verb,param)

Where:

 l cftau indicates   that syntax analysis is requested

 l cftac indicates that syntax analysis is not requested

 l <verb> is   the command that you want to process

 l <param> is   a character string of variable length that contains the command parameters.   The end of the field is defined by a character initially set to low-value

 l <rc> is the   return code

The available <verbs> are listed in the following table.

<verb> Service

SEND Send

RECV Receive

HALT Interrupt

KEEP Suspend

Transfer CFT IBM i3.3.0 Installation Guide  170

Page 178: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

<verb> Service

START Retry

DELETE Delete

END Proceed to "X" state

SUBMIT Re-submit end-of-transfer procedure

SHUT Stop monitor

SWITCH Switching monitoring files (log, statistics file)

COM  

If <param> is not defined, CFTU will   take a default name. 

As these media are not available on all systems, the function performs   an availability check.

The security check is performed on the user name, and the user group   if applicable, depending on the command:

 l IDF if present   in parameter field: DELETE, END, HALT, KEEP, SEND, RECV, START

 l Procedure name:   SUBMIT

 l Type: SWITCH LOG   or ACCNT

Return codes

Mnemonic Description

CAPI_NOERR No error

CAPI_FUNC_UNDEF Command not valid

CAPI_CMD_LENGTH cftau onlyTransfer CFT command string invalid, does not exist, or   greater than 1024 characters long 

CAPI_KEY_NAME cftau onlyCommand syntax incorrect: keyword name incorrect

CAPI_KEY_VALUE cftau onlyCommand syntax incorrect: keyword value incorrect

CAPI_MEM_GET Memory allocation error

Transfer CFT IBM i3.3.0 Installation Guide  171

Page 179: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Mnemonic Description

CAPI_MEM_FREE Memory de-allocation error

CAPI_INT_ERR1 Internal error 1

CAPI_INT_ERR2 Internal error 2

CAPI_INT_ERR3 Internal error 3

Error messagesThe FIELD and MSG fields of the CFTAPI COPY CLAUSE contain:

 l FIELD: name of   the incorrect parameter detected by the  Transfer CFT syntax analyzer

 l MSG:

 o Either a message   relative to the error recognized by the syntax analyzer

 o Or an error   message describing an incident when the command is taken into account

If no error is detected, the FIELD and MSG fields are blank.

Transfer CFT IBM i3.3.0 Installation Guide  172

Page 180: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About Transfer CFT services in COBOLThis book begins with this topic   which provides information about using the  Transfer CFT services in COBOL. 

The programming interface is implemented by the calling application   module link, with the  Transfer CFT interface function module or modules.

The library of modules supplied provides everything programmers can   require.

This library also contains a programming example and the following COPY   CLAUSE: CFTAPI   to be included in the application which uses the  Transfer CFT programming   interfaces.

Call syntaxCALL CFTx USING <verb> <blk> <param> <rc>

Where:

 l CFTx indicates:   

 l CFTI:    Transfer CFT catalog querying services

 l CFTU:   transfer services with syntax analysis

 l CFTC:   transfer services without syntax analysis

 l <verb> is the  command   you want to process

 l <blk> is the internal control block

 l < is a character string of   variable length that contains the function parameters>param

 l <rc> is the return code

The variables described in this documentation are defined in the cftapi.cop file supplied in the library   of delivered modules. The programming example and the corresponding COPY   files are shipped with the product.

Return codesThe return codes are returned by the programming interfaces in the form   of mnemonics.

Note It is strongly recommended that you test the return codes of services   provided by the  Transfer CFT programming interfaces through mnemonics,   the corresponding values being able to change without notice.

The return codes are listed in the cftapi.cop   source file.

Transfer CFT IBM i3.3.0 Installation Guide  173

Page 181: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

About Transfer CFT services in COBOLThis book begins with this topic   which provides information about using the  Transfer CFT services in COBOL. 

The programming interface is implemented by the calling application   module link, with the  Transfer CFT interface function module or modules.

The library of modules supplied provides everything programmers can   require.

This library also contains a programming example and the following COPY   CLAUSE: CFTAPI   to be included in the application which uses the  Transfer CFT programming   interfaces.

Call syntax

CALL CFTx USING <verb> <blk> <param> <rc>

Where:

 l CFTx indicates:   

 l CFTI:    Transfer CFT catalog querying services

 l CFTU:   transfer services with syntax analysis

 l CFTC:   transfer services without syntax analysis

 l <verb> is the  command   you want to process

 l <blk> is the internal control block

 l < is a character string of   variable length that contains the function parameters>param

 l <rc> is the return code

The variables described in this documentation are defined in the cftapi.cop file supplied in the library   of delivered modules. The programming example and the corresponding COPY   files are shipped with the product.

Return codesThe return codes are returned by the programming interfaces in the form   of mnemonics.

Note It is strongly recommended that you test the return codes of services   provided by the  Transfer CFT programming interfaces through mnemonics,   the corresponding values being able to change without notice.

The return codes are listed in the cftapi.cop   source file.

Transfer CFT IBM i3.3.0 Installation Guide  174

Page 182: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer CFT catalog query servicesThis service provides access to the  Transfer CFT catalog entries, for   querying and modification, and enables you to sort the selected catalog   entries. Additionally, you can sort the current selection in memory. 

Note The communication structure   in Transfer CFT enables you to recuperate catalog fields, such   as an identifier, that exceed 8 to 32 characters.

Function Use

OPEN Open catalog fileThis function:

 l Allocates   the catalog file

 l Opens   the file

 l Reserves   an internal control block

 l Initializes   the internal block parameter 

SELECT Specify the selection criteriaThis function:

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

SELECT240 Specify the selection criteriaThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Checks   the syntax used

 l Stores   the selection criteria in the internal control block

NEXT Read next entry in the catalogThis function:

 l Reads   the next entry

 l Sets   the "catalog entry data" areaThe first call to this function must be preceded by a SELECT.

Transfer CFT IBM i3.3.0 Installation Guide  175

Page 183: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

NEXT240 Read next entry in the catalogThis function:

 l Is available   in CFT v2.4 and higher

 l Retrieves   identifiers that are longer than 8 to 32 characters

 l Reads   the next entry

 l Sets   the "catalog entry data" area

MODIFY Modify the state of the current catalog entry or delete   this entry from the catalogThis function:

 l Retrieves   the last entry read from the internal control block

 l Checks   the state of this entry

 l Sends   the modification request to  Transfer CFT

SORT Sort the selected catalog entriesThis function:

 l Close   the catalog file

 l De-allocates   the file

 l Frees   the internal control block

 l Resets   the internal control block parameter

DO Execute the current selection and the requested sort in   memory

CLOSE Close catalog file

Call syntax

CALL "CFTI" USING <verb> <blk> <param> <rc>

Where:

 l <verb> is   the command that you want to process

 l <blk> is   a  Transfer CFT specific field that   must not be changed by the application

 l <param> is   a character string of variable length that contains the command parameters.   The end of the field is defined by a character initially set to low-value

 l <rc> is the   return code

The available <verbs> are listed in the following table.

Transfer CFT IBM i3.3.0 Installation Guide  176

Page 184: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

<verb> Value Service

F-OPEN OPEN Open catalogF-SELECT SELECT Define selection criteriaF-NEXT NEXT Read next entryF-MODIFY MODIFY Modify catalog entry stateF-CLOSE CLOSE Close catalog

The available <param> are listed in the following table.

<verb> <param> Explanation

F-OPEN D-CAT Path name or logical name of the catalog file. If the name   is blank, Transfer CFTI uses a default name.

F-SELECT Z-SEL Selection criteria according to the format   described in the "Selection data   description" in the cft.apicop   file. If a field is blank or equal to binary zeros, it is considered not   selective.This field can contain:

 l the size   of the selection criteria field (SLENTGTH) and the size of the field supporting   the catalog entry (CLENGTH) in order to avoid recompiling the application   program if these two fields are extended.

 l the transfer   start and end date (BDATE and EDATE) to select transfers performed between   these two dates.

 l a mask   with the special characters "?" and *". The "?"   character replaces any character. The "*" character replaces   a character string of any length. 

 Examples: A*D replaces ABCD, ABCED or AID A??D replaces ABCD, AXYD or AQZD *CD replaces ABECD, YXZCDor TYUICD ?CD replaces ACD, XCD or ZCD ?B* replaces ABCDEF, XBZWEO or *KBWXCV ???? replaces  ABCD, XYZW or HGFD

F-NEXT Z-CAT Next catalog entry according to the format described in   the "Selection data description"   in the cft.apicop file.The length of this field is defined by the SELECT service.   See the CLENGTH field in the Selection data description.

Transfer CFT IBM i3.3.0 Installation Guide  177

Page 185: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

<verb> <param> Explanation

F-MODIFY M-STATE New state of a transfer to be placed in the catalog entry   previously read:

 l ‘D’ at   Disposal: only valid if the former state is H or K

 l ‘H’ Hold:   only valid if the former state is D, C   or K

 l ‘K’ Keep:   only valid if the former state is D, C or H

 l ‘X’ eXecuted:   only valid if the former state is T

 l ‘P’ Purge:    deletes   the catalog entryF-CLOSE   No <param> needed

Return codesThe return codes listed below apply to all services.

Mnemonic Description

CAPI-NOERR No errorCAPI-FUNC-UNDEF Command not validCAPI-INT-BLK <blk> parameter invalidOPEN code onlyCAPI-MEM-GET Memory allocation errorCAPI-CAT-ALLOC Catalog file allocation errorCAPI-CAT-OPEN Catalog file opening problemSELECT code onlyCAPI-SEL-DIRECT DIRECTION criterion incorrectCAPI-SEL-TYPE TYPE criterion incorrectCAPI-SEL-STATE STATE criterion incorrectCAPI-CAT-EMPTY Catalog emptyCAPI-SEL-DATE EDATE value < BDATE valueCAPI-SEL-FDATE FDATE criterion incorrectCAPI-SEL-CDATE CDATE criterion incorrectCAPI-SEL-BDATE BDATE criterion incorrectCAPI-SEL-DATE EDATE   criterion incorrectNEXT code onlyCAPI-CAT-EOF End of catalog fileCAPI-CAT-READ Catalog file read errorMODIFY code only

Transfer CFT IBM i3.3.0 Installation Guide  178

Page 186: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Mnemonic Description

CAPI-MOD-OSTATE State invalidCAPI-MOD-NSTATE Requested new state incorrectCAPI-INT-ERR2 Internal errorCAPIO-COM-OPEN Communication medium opening errorCAPI-COM-WRITE Communication medium write errorCAPI-COM-CLOSE Communication medium closing problemCLOSE code onlyCAPI-MEM-FREE Memory de-allocation errorCAPI-CAT-FREE Catalog file de-allocation errorCAPI-CAT-CLOSE Catalog file closing error

Transfer CFT IBM i3.3.0 Installation Guide  179

Page 187: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Synchronous communication servicesThis topic describes  Transfer CFT synchronous communication services. 

Description of functions

Function Use

COM Set the communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request after a request of the following types: SEND,   RECV, HALT, KEEP, START, RESUME, DELETE, END, SUBMIT, SWITCH, PURGE.The information is stored in a cftApiInf-type structure:

 l Transfer   state 

 l Diagnostic   

 l Diagnostic   protocol 

 l Value   of the PART field of CFTPARM 

 l Transfer   identifier (IDT) 

 l Local   transfer identifier (IDTU) 

 l Transfer   type (single, cyclical, diffusion list, collection, file group) 

 l Public   reference of the transfer (only for a single transfer in Send)The GETXINFO action returns an error if the communication   medium is not synchronous.

Note The public   reference of the transfer is a character string of variable length. In   the PESIT protocol, it contains 'pi13.pi3.pi4.pi11.pi12.pi61.pi62'.

Call syntax

CALL "CFTU" USING <verb> <param> <rc>

CALL "CFTC" USING <verb> <param> <rc>

Where:

 l CFTU indicates   that syntax analysis is requested CFTC indicates that syntax analysis is not requested

 l <verb> is   the command that you want to process

 l <param> is   a character string of variable length that contains the command parameters.   The 

Transfer CFT IBM i3.3.0 Installation Guide  180

Page 188: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

end of the field is defined by a character initially set to low-value

 l <rc> is the   return code

The available <verbs> are listed in the following table.

<verb> Value ServiceF-COM COM Communication mode

The available <param> are listed in the following table.

<verb> <param> ExplanationF-COM D-COM The COM command parameter structure is as 

follows: <medium   type> = <Medium name>The medium type consists in an uppercase letter:

 l 'F' for   file

 l 'T'   for the TCP/IP synchronous medium

 l 'C' for   the configuration file (ConfigFileName)The medium name is the:

 l Filename,   if the medium type is 'F'

 l Name   of the communication channel, if the medium type is 'T'

 l Name   of the configuration file containing the medium of communication characteristics,   if the medium type is C. 

Return codes

Mnemonic Description

CAPI-NOERR No errorCAPI-FUNC-UNDEF Command not validCAPI-COM-OPEN Communication medium opening errorCAPI-COM-WRITE Communication medium write errorCAPI-COM-CLOSE Communication medium closing problemCAPI-COM-ALLOC Communication medium allocation problemCAPI-COM-ERR Communication medium not available on this system

The available <verbs> are   listed in the following table.

<verb> Value Service

F-COM COM Communication modeF-GETINXFO GETINXFO Recovering information about a transfer made from a 

synchronous   request

The available <param> are   listed in the following table.

Transfer CFT IBM i3.3.0 Installation Guide  181

Page 189: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

<verb> <param> Explanation

F-COM D-COM The COM command parameter structure is as follows: <medium   type> = <Medium name>The medium type consists in an uppercase letter:

 l 'F' for   file

 l 'T' for the TCP/IP synchronous medium

 l 'C' for   the configuration file (ConfigFileName)The medium name is the:

 l Filename,   if the medium type is 'F'

 l Name   of the communication channel, if the medium type is 'T'

 l Name   of the configuration file containing the medium of communication characteristics,   if the medium type is C. 

F-GETINXFO Z-XINF Information about a transfer in the format described in   the OAPIINF file.

Transfer CFT IBM i3.3.0 Installation Guide  182

Page 190: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Transfer services in COBOLUse the transfer services to send transfer control commands to Transfer   CFT, with or without a syntax analysis   of these commands. The programming interface proposes a function integrating   a syntax analysis of the command to detect any errors, at the source,   and a function without syntax analysis, which provides a much smaller   coding volume.

The transfer services functions:

 l Check the validity   of the command name

 l Analyze the syntax   of the command parameters, if the function using the syntax analyzer is   used

 l Place the command   in the  Transfer CFT communication medium

The processing performed by  Transfer CFT is totally asynchronous.

The return code only provides an indication that the function has effectively   been taken into account but does not necessarily mean that  Transfer CFT   has executed the command correctly. A return code indicating the success   of the function only means that the command has been correctly placed   in the communication medium.

Function Use

SEND Send transfer request: file, message or reply

RECV Receive transfer request

HALT Interrupt one or more send or receive transfers with a   given partner.The interrupted transfers are set to the "H"   state and can be restarted at the partner's request.

KEEP Suspend one or more send or receive transfers with a given   partner.The interrupted transfers are set to the "K"   state and can only be restarted by a START command.

START Start one or more send or receive transfers

DELETE Delete a catalog entry and any transfer in process associated   with it

END Set a transfer status to executedThe transfer is set to the "X" state. This indicates   that end-of-transfer procedure has been correctly executed.

SUBMIT Submit the end-of-transfer procedure

SHUT Shut down  Transfer CFT

Transfer CFT IBM i3.3.0 Installation Guide  183

Page 191: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

Function Use

SWITCH Switch monitoring files, LOG, STATS...

CLOSEAPI Free resources allocated at opening of communication medium:   memory, network, file

COM Define communication medium

GETXINFO Retrieve information concerning the last transfer made   from a synchronous request

Call syntax

CALL     "CFTU"       USING     <verb>       <param>       <rc>CALL     "CFTC"       USING     <verb>       <param>       <rc>

Where:

 l CFTU indicates   that syntax analysis is requested CFTC indicates that syntax analysis is not requested

 l <verb> is   the command that you want to process

 l <param> is   a character string of variable length that contains the command parameters.   The end of the field is defined by a character initially set to low-value

 l <rc> is the   return code

The available <verbs> are listed in the following table.

<verb> Value Service

F-SEND SEND SendF-RECV RECV ReceiveF-HALT HALT InterruptF-KEEP KEEP SuspendF-START START RetryF-DELETE DELETE DeleteF-END END Proceed to "X" stateF-SUBMIT SUBMIT Re-submit end-of-transfer procedureF-SHUT SHUT Stop monitorF-SWITCH SWITCH Switching monitoring files 

(log, statistics file)F-CLOSEAPI CLOSEAPI Freeing resources allocated at the opening of the 

communication   medium

If <param> is not defined, CFTU   takes the default name.

Transfer CFT IBM i3.3.0 Installation Guide  184

Page 192: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

A  About APIs

As these media are not available on all systems, an availability check   is performed by the function.

Return codes

Mnemonic Description

CAPI-NOERR No errorCAPI-FUNC-UNDEF Command not validCAPI-CMD-LENGTH Transfer CFT command string invalid, does not exist, or   greater 

than 1024 characters long CAPI-KEY-NAME Command syntax incorrect: keyword name incorrectCAPI-KEY-VALUE Command syntax incorrect: keyword value incorrectCAPI-MEM-GET Memory allocation errorCAPI-MEM-FREE Memory de-allocation errorCAPI-INT-ERR1 Internal error 1CAPI-INT-ERR2 Internal error 2CAPI-INT-ERR3 Internal error 3

Error messagesThe FIELD and MSG fields of the CFTAPI COPY CLAUSE contain:

 l FIELD: name of   the incorrect parameter detected by the  Transfer CFT syntax analyzer

 l MSG:

 l Either a message   relative to the error recognized by the syntax analyzer

 l Or an error   message describing an incident when the command is taken into account

If no error is detected, the FIELD and MSG fields are blank.

Transfer CFT IBM i3.3.0 Installation Guide  185

Page 193: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

B  Appendix B: Menu mapping

Transfer CFT 2.7.11. Customization       1. CFT parameters                              1. Source member modifications          2. Interpret selected member            3. Work with examples               2. Set up CFTUCONF configuration file      3. SSL security parameters                     1. Modify SSL configuration file            2. Interpret SSL configuration file         3. Start PKIUTIL session                4. Authorization rights parameters             1. Modify Authorization rights configuration file                2. Interpret Authorization rights configuration file             3. Start SECUTIL session                                 2. Operation "CFTUTIL"       1. Display catalogue - LISTCAT  TYPE=ALL       2. Display partners - LISTPART TYPE=ALL       3. Display parameters - LISTPARM TYPE=ALL       4. All CFT Commands                                5. Interpret selected member                       6. Start CFT monitor                               7. Stop CFT monitor - SHUT                  3. COPILOT Server commands     1. Start COPILOT Server     2. Stop  COPILOT Server

 

Transfer CFT IBM i3.3.0 Installation Guide  186

Page 194: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

B  Appendix B: Menumapping

Transfer CFT 3.0.1 1. Customization     1. CFT parameters         1. Source member modifications         2. Interpret selected member       2. Internal PKI database             1. Modify SSL configuration file           2. Interpret SSL configuration file    3. Internal Access Management        1. Modify Internal Access Management file            2. Interpret Internal Access Management file         3. Start SECUTIL session  2. CFT Operations    1. Display catalog - LISTCAT  TYPE=ALL       2. Display partners - LISTPART TYPE=ALL       3. Display parameters - LISTPARM TYPE=ALL       4. CFTUTIL                                         5. PKIUTIL                                         6. Interpret selected member                       7. Start UI Server                                 8. Stop UI server                                  9. Start CFT monitor                               10. Stop CFT monitor - SHUT 

 

Transfer CFT IBM i3.3.0 Installation Guide  187

Page 195: Transfer CFT Installation Guide IBM i - Axway …€¦ · Call from a COBOL/ILE or RPG/ILE program 99 Call from a C Program 100 Start the Transfer CFT IBM i Manager 101 Starting

B  Appendix B: Menumapping

Transfer CFT 3.1.3 SP4 and higher1. Common Transfer CFT commands  

1.  Start Copilot             2.  Stop Copilot              3.  Start CFT        4.  Stop CFT         5.  CFTUTIL operations        6.  Interpret source member   7.  Manage configuration File

1.  Edit configuration file      2.  Interpret configuration file

2.  Security commands   1.  Edit Security configuration file 2.  Interpret Security configuration 3.  PKIUTIL operation                          

3.  Administration commands  1.  Reinitialize Transfer CFT parameters 2.  Submit Transfer CFT support request       

4.  Create system objects 1.  Create job queue          2.  Create job description    3.  Create subsystem          4.  Add job-queue entry       5.  Create class              6.  Add routing entry         7.  Add communication entry   8.  Change profile                    

Note: A highlighted menu item indicates there is a sub menu.

 

Transfer CFT IBM i3.3.0 Installation Guide  188