Copyright © Cloud Software Group, Inc. All rights reserved
Copyright © Cloud Software Group, Inc. All rights reserved


Chapter 3 Configuring the Adapter : FileSubscriber Configuration

FileSubscriber Configuration
This section describes the FileSubscriber configuration file. The sections are listed in the order in which the sections appear in the file. The elements that comprise each section are listed in alphabetical order. In addition, sample elements are provided at the end of the section.
Trace Section
You can use the Trace section to specify the trace logging behavior of FileSubscriber. This is the first section in the configuration file. The elements specified in this section are listed in the following table; all are required (except those used at the request of TIBCO Support).
Specifies how many log files to keep. Each saved old log file name has a number (from 1 to the FILE_COUNT minus 1) suffixed to it. For example, if FILE_NAME is specified as FPLOG, and FILE_COUNT is set to 5, then there are four saved log files, named FPLOG1 through FPLOG4, with FPLOG4 being the earliest (or oldest) file.
Identifies the log file to be used for trace messages. This is a source physical file. If the file does not exist, then FilePublisher creates one. The default record length is 266 bytes. Default trace log files, PUBLOG and SUBLOG, are available in TIBFASMPRV or TIBFASMPEM for your use. If you require a larger record length, you can create your own file; for example:
Specifies whether to send the trace log messages to standard output (STDOUT) of the job in addition to the FILE_NAME specified when set to true. If set to false, trace messages are written only to a log file. If the adapter jobs are submitted to batch, STDOUT appears in the QPRINT printer file. If QSHELL is used to submit the adapter jobs, STDOUT appears on screen.
Trace level 1 generates the following session-level messages:
Initialization of TIBCO EMS/Rendezvous, including the version number
TIBCO EMS/Rendezvous sessions created
Trace level 2 generates level 1 messages plus all the following values loaded from the configuration file:
Trace level 3 generates level 1 and 2 messages plus the following field-related messages:
All key I/O Open/Close actions against S/390 files.
Trace level 4 for detailed tracing. Usually used only at the request of TIBCO Support.
Trace level 5 for detailed tracing. Usually used only at the request of TIBCO Support.
Traces all TIBCO RV or EMS received message callbacks
Trace Level 6 generates level 1 through 5 messages. Usually used only at the request of TIBCO Support.
Trace Level 10 generates Level 1 through 6 messages. Usually used only at the request of TIBCO Support.
Detailed trace of all RV/EMS message allocates and frees
Trace Level 15 generates Level 1 through 10 messages. Usually used only at the request of TIBCO Support.
Options Section
You can use the Options section for the following options:
Establish the type of TIBCO EMS or Rendezvous session to be used by FileSubscriber for subscribing
You can override these global elements in the FileType section.
 
Used to set the terminate subject or destination (for EMS) to _FILEADAPTER.<adapter name>.TERMINATE. Sending a message to this subject either stops FileSubscriber or FilePublisher depending on the value of <ADAPTER_NAME>.
Used to set the heartbeat subject or destination (for EMS) to _FILEADAPTER.<adapter name>.HEARTBEAT. This is used to send heartbeat messages, but does not mean that heartbeats are published. To publish (or send) heartbeats see PUBLISH_HEARTBEAT.
For terminate messages, the default destination type is QUEUE. For heartbeat messages, the default destination type is TOPIC.
Specifies whether to abend the adapter when it first encounters an initialization error for any FileType section. If set to true and, if a configuration error is found for a file, generate a message to the log and go on to the next file. If set to false, abend the adapter. Valid values: true, false (default).
providerURL — The URL of the TIBCO EMS server
Specifies the return code that FileSubscriber returns when exiting with an error condition. Specifies MVS condition code at exit. Valid values: 4, 8 (default).
Specifies where the error message publish to. If this is not blank, all traceErr and FatalErr messages are copied and sent to that subject. Valid values: blank, string. The default value is blank.
The default value is 60000 milliseconds, or 60 seconds.
Works with the codepage support in TIBCO Rendezvous 7.1 and above or EMS 4.2 and above. Specifies the translation table to use on the IBM i mainframe side. Defaults to the CCSID of the job in which the Publisher or Subscriber is running and which is usually tied to the profile of the user who initiated the job.
Works with the codepage support in TIBCO Rendezvous 7.1 and above/EMS 4.2 and above. Specifies the expected codepage sent by any remote subscribers.
Specifies the default output library data set to be used for all files any file type. This is suffixed appropriately for the actual output data sets.
Enables publishing of heartbeat messages. Valid values: true, false (default). For EMS, heartbeat messages are sent to EMS TOPIC by default.
Warning: QUEUE_LIMIT only can be used in ECM or RVCM transport mode. The data might be lost if you use it in RV transport mode.
name — Unique alphanumeric name identifying the TIBCO Rendezvous session
service — Service group for this session
network — Network to initialize a TIBCO Rendezvous session
daemon — Name of the TIBCO Rendezvous daemon for this session
ledgerFile — Name of the file-based ledger for Certified Messaging. This file is created in the Integrated File System.
requireOldMessages — Indicates whether a persistent correspondent requires delivery of messages sent to a previous session with the same name for which delivery was not confirmed. Setting this parameter to true enables delivery of old unacknowledged messages; setting it to false does not.
defaultTimeLimit — Sets the default message time limit for all outbound certified messages. The time is specified in seconds and the default value is 60.
syncLedger — If you want to use a synchronous ledger file, set this parameter to true. The default value is false, meaning an asynchronous ledger file is used.
Valid values: true, false. The default value is false.
If true, major checkpoint log messages are sent to QSYSOPR *MSGQ z/OS errors are written to SYSLOG. Each message includes date and time information. The format is standard IBM-style message format such as an SXFnnnnn header followed by message text. Valid values: true, false. The default value is false.
FileType Section
This section describes the file that is to be written. It consists of two elements:
Configuring the FILE_OPTIONS Element
This section describes the parameters in the FILE_OPTIONS element. A configuration file can have multiple [FILE_OPTIONS] definitions in a single file.
Used to construct the name of the file that is written to the output library data set. Specify a value of up to 5 characters. Also used for deriving the names of the progress file and the work file.
Specifies that a trackingId message is to be sent by the subscriber. This message is created after the subscriber finishes writing the file and receiving the EOF acknowledgement from the publisher. Valid values: true, false (default). If true, the following additional fields are attached to the message published to trackingIdSubject:
FileExtension (N/A for IBM i NT only, null if z/OS)
Name of the subject on which messages containing the trackingId information are published.
Specifies that only sequentially organized data is allowed. Specify SEQ. Specifies the type of data set for this file type. This can be SEQ for sequential data sets, GDG for Generation Dataset Groups,PDS for partitioned datasets, or VSAM for Virtual Storage Access Method.
Name of the output library data set for this file type. The default value is what is specified in the OUTPUT_LIBRARYDATASET element of the Options section. This overrides the value specified in OUTPUT_LIBRARY.
Note: VSAM and GDG file types must be preallocated before subscribing to them.
Note: lineLength cannot be larger than 32764 bytes.
wrap—wrap around the rest of the record to a new line.
discard—truncate the record and do not generate an error file
error—truncate the record and rename the working file (WK-prefixed fileCWK) to the error file (ERRnn-prefixed file.ERR) at EOF (default).
Only used for sequential data sets. If true, FileSubscriber appends the system time to the filePrefix parameter when constructing the name of the file to be written. That is, the generated output data set name has the format:
If true (default), enables automatic output file creation based on a timer (see the next parameter, saveFileInterval). If false, output files are not generated based on a timer. This value must be explicitly turned off if not required.
If autoGenerateFile is set to false, then the saveFileInterval parameter and generateFileOnNumberOfMessages are ignored. When set to false, the file cannot be generated until an End-Of-File indication is received from the Publisher.
Note that the saveFileInterval and generateFileOnNumberOfMessages parameters are mutually exclusive.
If value of the noOfRetries parameter is greater than 0, then the value of the retryInterval parameter must be also greater than 0.
If true, specifies that if an output file already exists, the data received is appended to the existing file. Otherwise, FileSubscriber overwrites existing data. In the case of sequential dataset output, this option is effective only when appendDateTime is set to false.
Warning: If the subscriber is configured with appendToExistingFile="false" and if there is an I/O error in writing to the output file, then the adapter removes the output file first and then renames the work file to error file.
Specifies what the adapter does when it cannot save data to the target file because of insufficient space. If true, exit the adapter. Otherwise continue to accept data and write it to the 'temporary' subscriber file.
Valid values: true, false. The default value is true.There are two variations of out-of-space situations:
2.
The file was partially written, but no more extents can be allocated. In that case, the partial file is renamed to filename.ERR and cataloged. An error message is written to the log indicating the file could not be created because of lack of space.
If this flag is set to true, the output file is named the same as the file being published. Specifically, the output file is named the same as the filename contained in the EOF message.
1.
the filePrefix must be specified.
2.
generateFileSubjectName must be specified and must match the endPublishSubject as specified in the Publisher's configuration file.
Valid values: true, false. The default value is false.
The subject name to subscribe to for generating the output file for this file type. If autoGenerateFile is set to false, then the saveFileInterval parameter and generateFileOnNumberOfMessages are ignored. When set to false, the file cannot be generated until an EOF indication is received from the Publisher.
Most usages of generateFileSubjectName require that it match the subscribeSubjectName.
The generateFileFieldName is used to act as a message differentiator, so that the message being sent to a Subscriber can be identified as being a “Generate File” trigger message. It is only required if the subscriber is using the generateFileSubjectName for the associated FileType.
Note: If you specify a certified session, then all files are published in certified mode unless you specify false for the isCertified parameter.
If the FileSubscriber session is not a certified session, this parameter is ignored. If the FileSubscriber session is specified as a certified session, then the default value for this parameter is true, which means that the file is subscribed to in certified mode. You can specify false if you want to have a specific file subscribed to in non-certified (reliable) mode.
Causes FileSubscriber to execute a command or call a program submit a job to the internal reader for execution before generating an output file. See Pre-Processing and Post-Processing Files.
Causes FileSubscriber to execute a command or call a program submit a job to the internal reader for execution after generating an output file. See Pre-Processing and Post-Processing Files.
If included and set to true, specifies that data fields are to be delimited and not padded.
If false, data fields are padded with characters specified by the padCharacter parameter and are fixed width.
In that case, FileSubscriber generates fixed-length fields in the output record. The file position in the output record is determined by the position parameter in the FILE_LINE element, and the field length is determined by the length parameter.
If skipPadding is false, this alphanumeric character is used as the pad character.
Specifies which direction to pad the data field, left or right. The default value is right, which means that the pad characters are added to the right side of the field (that is, left-justified).
An alphanumeric character used to separate the fields in a line. This parameter is valid only if skipPadding is true. This parameter does not have a default value, which means that if this parameter is not specified, there is no separator between fields.
When set to true, specifies that the file data is in binary format. Binary data includes zoned decimal, binary, packed decimal, and floating point data types.
The adapter writes the data to the file in blocks. The publisher determines the block size. Valid values: true, false (default).
Use ECM mode. Valid values: true, false (default).
Warning: You cannot specify both an ECMSubscriberName and a confirmationSubject.
Warning: You cannot specify both a confirmationSubject and an ECMSubscriberName.
For the Publisher, this parameter represents the number of times the transactionDelay timer must pop before checking for any unacknowledged Message Blocks (retransmissionDelayTicks * transactionDelay). The default value for the Publisher is 2 sec.
Configuring the FILE_LINE Element
Use the FILE_LINE element in the FileType section to format the output record. If output records are in a different format, you can include multiple FILE_LINE elements in a single FileType section. The FILE_LINE element contains parameters that are defined using the following tags. These tags are optional unless specified otherwise.
The FILE_LINE element describes the format of the message to be published. It can be formed by using one or more of the following parameters.
Tags in the field parameter
The FILE_LINE element’s field parameter has the following tags.
A setting of true flags this field as being generated from a data item in the incoming TIBCO Rendezvous message. A setting of false means that this field is a constant field. The default value is false.
For delimited files, specifies the field position in the record, starting at 1. Otherwise, specifies the byte index in the record, starting at 0. Also see the skipPadding parameter for the effect of position in output records. Use position or fieldStart but not both.
Data type of this field. Valid values: STRING, INTEGER, UNSIGNED INTEGER, SHORT, UNSIGNED SHORT, FLOAT, DOUBLE, BOOLEAN, and TIME. The default value is STRING. Valid values for EMS: STRING, INTEGER, SHORT, FLOAT, DOUBLE, BOOLEAN.
Use this tag to override the padCharacter specified in the FILE_OPTIONS section. If required, specify an alphanumeric character.
Use this tag to override the padDirection specified in the FILE_OPTIONS section. If required, specify either left or right.
The TIBCO Rendezvous numeric data types INTEGER, UNSIGNED INTEGER, SHORT, UNSIGNED SHORT, and FLOAT can be converted to PACKED, ZONED, BINARY, or Floating Point. STRING values that are in numeric format can also be converted to PACKED, ZONED, BINARY, or Floating Point output.
When you specify TIME as a data type, FilePublisher gets the current system time, and places it in the TIBCO message. When FileSubscriber receives the message, it converts the time to a string, which represents the system time of the publishing system.
Tags in the constraint Parameter
FileSubscriber supports multiple line formats from different sections of a TIBCO message. To support this, you have to include multiple FILE_LINE elements in the FileType section. When multiple FILE_LINE elements are used, a constraint parameter must be supplied for each FILE_LINE element to indicate when to use that definition.
The FILE_LINE element’s constraint parameter contains the following tags:
 
Sample Configuration Elements
This section contains several configuration element examples that you can use as models.
Example 9 Record Mode Subscriber - Delimited Text File
This example shows the FileType section of a configuration file for processing TIBCO Rendezvous messages for a delimited file.
Configuration file name – SUB001.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT1",
                 delimiter = "|",
                 skipPadding = "true",
                 isBinary = "false",
                 noOfRetries = "10", retryInterval = "5",
                 subscribeSubjectName = "SUB.PUB001.FT1",
                 autoGenerateFile = "true",
                 appendDateTime = "true",
                 saveFileInterval = "100",
                 transferType = "RecordMode"
}
 
FILE_LINE = {
field = { description = "Part Number", position = "1",
fromMessage = "true", value = "PartNo", type = "STRING" },
field = { description = "Part Description", position = "2",
fromMessage = "true", value = "Desc", type = "STRING" },
field = { description = "Manufacturer", position = "3",
fromMessage = "true", value = "Manufacturer", type = "STRING" },
field = { description = "Model", position = "4",
fromMessage = "true", value = "Model", type = "STRING" },
field = { description = "Quantity", position = "5",
fromMessage = "true", value = "Quantity", type = "INTEGER" },
field = { description = "Unit Price", position = "6",
fromMessage = "true", value = "Price", type = "FLOAT" },
field = { description = "Warranty Period in years", position = "7",
fromMessage = "true", value = "Warranty", type = "STRING" }
}
Assuming that the file used in the first FilePublisher example is being subscribed to, FileSubscriber would create a file that would look as follows:
 
115-01-0500|MONITOR|SONY|VIEWSONIC|1|350.500000|1 Year
115-15-6542|CPU-PIII750MHZ|COMPAQ|PRESARIO|1|900.000000|1 Year
115-67-7356|HDD20GB|SEAGATE|ST500|1|276.600006|1 Year
115-34-8767|FDD54|HP|T24333|1|86.000000|1 Year
115-77-5555|CDRW|HP|T75668|1|350.000000|1 Year
115-78-4646|KEYBOARD|COMPAQ|EASYKEY101|1|32.000000|1 Year
115-88-4454|MOUSE|MICROSOFT|M323|1|26.000000|1 Year
115-36-2727|WINDOWS2000|MICROSOFT|MSW2000|1|400.000000|1 Year
Example 10 Record Mode Subscriber - Fixed Length Text File
This example shows the FileType section of a configuration file for processing TIBCO Rendezvous messages for a fixed length text file.
Configuration file name – SUB002.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT2",
                 dataSetType = "SEQ",
                 isBinary = "false",
                 lineLength = "100",
                 useFixedRecordFile = "true",
                 appendToExistingFile = "false",
                 truncateRecords = "error",
                 exitOnFileSaveError = "false",
                 noOfRetries = "10", retryInterval = "5",
                 isCertified = "false",
                 subscribeSubjectName = "SUB.PUB002.FT2",
                 generateFileSubjectName = "ENDPUB.PUB002.FT2",
                 generateFileFieldName = "filename",
                 autoGenerateFile = "false",
                 transferType = "RecordMode"
}
 
FILE_LINE = {
field = { description = "Part Number", fromMessage = "true",
value = "PartNo", position="0", length = "11", type = "STRING" },
field = { description = "Part Description", fromMessage = "true", value = "Desc", position="11", length = "15", type = "STRING" },
field = { description = "Vendor", fromMessage = "true",
value = "Vendor", position="26", length = "11", type = "STRING" },
field = { description = "Model", fromMessage = "true",
value = "Model", position="37", length = "12", type = "STRING" },
field = { description = "Quantity", fromMessage = "true",
value = "Quantity", position="49",length = "2", type = "INTEGER" },
field = { description = "Unit Price", fromMessage = "true",
value = "Price", position="51", length = "6", type = "FLOAT" },
field = { description = "Warranty Period in years",
fromMessage = "true", value = "Warranty", position="57",
length = "10", type = "STRING" }
}
Assuming that the file used in the second FilePublisher example is being subscribed to, FileSubscriber would create a file that looks as follows:
 
115-01-0500MONITOR SONY VIEWSONIC 2 250.501 Year
115-15-6542CPU-PIII750MHZ COMPAQ PRESARIO 4 12.3001 Year
115-67-7356HDD20GB SEAGATE ST500 2515.0001 Year
115-34-8767FDD54 HP T24333 1 45.2201 Year
115-77-5555CDRW HP T57213 5 290.001 Year
115-78-4646KEYBOARD COMPAQ EASYKEY1 10121.201 Year
 
Example 11 Record Mode Subscriber - Different Header and Detail Formats
In FilePublisher example, a file with multiple record types was used as an example. This example shows how to configure the FileSubscriber configuration file to handle the TIBCO Rendezvous messages to process a multiple format file. The following steps could be used to set up the configuration file:
1.
2.
Use a FILE_LINE element with a containerName parameter to define the format of each output line to be written after retrieving data from the message. FileSubscriber creates an output record for each FILE_LINE element.
For the example shown, FileSubscriber creates a header record for the “Recfm1_Quote” container, then it creates three detail records from the “Recfm2_Items” record.
3.
Configuration file name – SUB003.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT3",
                 dataSetType = "SEQ",
                 isBinary = "false",
                 lineLength = "100",
                 useFixedRecordFile = "true",
                 appendToExistingFile = "false",
                 truncateRecords = "error",
                 exitOnFileSaveError = "false",
                 noOfRetries = "10", retryInterval = "5",
                 isCertified = "false",
                 subscribeSubjectName = "SUB.PUB003.FT3",
                 autoGenerateFile = "true",
                 saveFileInterval = "100",
                 transferType = "RecordMode"
}
 
FILE_LINE = {
constraint = { containerName = "Recfm1_Quote" },
field = { description = "Record Identifier", fromMessage = "false", value = "QUOTE", position="0", length = "5", type = "STRING" },
field = { description = "Quote Request Number",
fromMessage = "true", value = "QuoteRequestNo", position="5", length = "5", type = "INTEGER" },
field = { description = "Supplier Code", fromMessage = "true", value = "SupplierCode", position="10",length = "5", type = "STRING" }
FILE_LINE = {
constraint = { containerName = "Recfm2_Items" },
field = { description = "Record Identifier", fromMessage = "false", value = "ITEMS", position="0",length = "5", type = "STRING" },
field = { description = "Part Number", fromMessage = "true",
value = "PartNo", position="5", length = "11", type = "STRING" },
field = { description = "Part Description", fromMessage = "true", value = "Desc", position="16",length = "15", type = "STRING" },
field = { description = "Vendor", fromMessage = "true",
value = "Vendor", position="31",length = "11", type = "STRING" },
field = { description = "Model", fromMessage = "true",
value = "Model", position="42",length = "12", type = "STRING" },
field = { description = "Quantity", fromMessage = "true",
value = "Quantity", position="54",length = "2", type = "INTEGER" },
field = { description = "Unit Price", fromMessage = "true",
value = "Price", position="56",length = "6", type = "FLOAT" },
field = { description = "Warranty Period in years",
fromMessage = "true", value = "Warranty", position="62",
length = "10", type = "STRING" }
}
Assuming that the file used in the third FilePublisher example is being subscribed to, the file that FileSubscriber creates would look as follows:
 
QUOTE15004MC001
ITEMS115-01-0500MONITOR SONY VIEWSONIC 2 250.501 Year
ITEMS115-15-6542CPU-PIII750MHZ COMPAQ PRESARIO 4 12.3001 Year
ITEMS115-67-7356HDD20GB SEAGATE ST500 2515.0001 Year
QUOTE15004MC002
ITEMS115-34-8767FDD54 HP T24333 1 45.2201 Year
ITEMS115-77-5555CDRW HP T57213 5 290.001 Year
ITEMS115-78-4646KEYBOARD COMPAQ EASYKEY1 10121.201 Year
 
Example 12 Record Mode Subscriber - Supporting Numeric Data Types
This examples shows how a FileSubscriber configuration file can be coded to support the numeric data types.
 
Configuration file name – SUB004.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="BIN2",
                 dataSetType = "SEQ",
                 isBinary = "true",
                 lineLength = "95",
                 useFixedRecordFile = "true",
                 appendToExistingFile = "false",
                 truncateRecords = "error",
                 exitOnFileSaveError = "false",
                 noOfRetries = "10",
                 retryInterval = "5",
                 isCertified = "false",
                 subscribeSubjectName = "SUB.PUB004.BIN2",
                 autoGenerateFile = "true",
                 saveFileInterval = "100",
                 transferType = "RecordMode"
}
 
FILE_LINE = {
field = { description = "Character", fromMessage = "true",
value = "Char", position="0", length="5", type="STRING" },
field = { description = "Packed", fromMessage = "true",
value = "Packed", position="5", type = "DOUBLE", precision="10,2", convertTo="PACKED" },
field = { description = "zoned", fromMessage = "true",
value = "Zoned", position="11", type = "DOUBLE", precision="10,2", convertTo="ZONED" },
field = { description = "binary", fromMessage = "true",
value = "Binary", position="21", type = "INTEGER", precision="10,0", convertTo="BINARY" }
field = { description = "Float", fromMessage = "true",
value = "Float", position="29", type = "DOUBLE", precision="7,2", convertTo="COMP-1" }
field = { description = "Double", fromMessage = "true",
value = "Double", position="33", type = "DOUBLE", precision="10,4", convertTo="COMP-2" }
field = { description = "Hex", fromMessage = "true", value = "Hex", position="41", length="10", type = "OPAQUE" }
field = { description = "Date", fromMessage = "true",
value = "Date", position="51", length="10", type = "OPAQUE" }
field = { description = "Time", fromMessage = "true",
value = "Time", position="61", length="8", type = "OPAQUE" }
field = { description = "STime", fromMessage = "true",
value = "STime", position="69", length="26", type = "OPAQUE" }
}
 
 
Example 13 Record Mode Subscriber with ECM
This example shows how to configure FileSubscriber to support ECM. In Record Mode ECM you have to specify endPublishSubject to signal the end of file publishing to FileSubscriber. The generateFileSubjectName parameter in FileSubscriber have to be same as endPublishSubject.
Configuration file name – SUB005.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT5",
                 delimiter = "|",
                 skipPadding = "true",
                 isBinary = "false",
                 noOfRetries = "10", retryInterval = "5",
                 subscribeSubjectName = "SUB.PUB005.FT1",
                 generateFileSubjectName = "ENDPUB.PUB005.FT1",
                 generateFileFieldName = "filename",
                 confirmationSubject = "ECM.PUB005.FT1",
                 autoGenerateFile = "false",
                 transferType = "RecordModeECM"
}
 
FILE_LINE = {
field = { description = "Part Number", position = "1",
fromMessage = "true", value = "PartNo", type = "STRING" },
field = { description = "Part Description", position = "2",
fromMessage = "true", value = "Desc", type = "STRING" },
field = { description = "Manufacturer", position = "3",
fromMessage = "true", value = "Manufacturer", type = "STRING" },
field = { description = "Model", position = "4",
fromMessage = "true", value = "Model", type = "STRING" },
field = { description = "Quantity", position = "5",
fromMessage = "true", value = "Quantity", type = "INTEGER" },
field = { description = "Unit Price", position = "6",
fromMessage = "true", value = "Price", type = "FLOAT" },
field = { description = "Warranty Period in years", position = "7",
fromMessage = "true", value = "Warranty", type = "STRING" }
}
 
Example 14 Block Mode Subscriber - Simple File Transfer
This configuration is for subscribing a file using Block Mode.
Configuration file name – SUB006.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT6",
                 dataSetType = "SEQ",
                 isBinary = "false",
                 lineLength = "100",
                 useFixedRecordFile = "true",
                 appendToExistingFile = "false",
                 truncateRecords = "error",
                 exitOnFileSaveError = "false",
                 noOfRetries = "10", retryInterval = "5",
                 isCertified = "false",
                 subscribeSubjectName = "SUB.PUB006.FT2",
                 generateFileSubjectName = "ENDPUB.PUB006.FT2",
                 generateFileFieldName = "filename",
                 autoGenerateFile = "false",
                 transferType = "BlockModeSFT"
}
 
Example 15 Block Mode Subscriber with ECM
This configuration is for subscribing a file in Block Mode using ECM.
Configuration file name – SUB007.
The FileType section of the configuration file:
[FileType]
FILE_OPTIONS = { filePrefix="FT7",
                 dataSetType = "SEQ",
                 isBinary = "false",
                 lineLength = "100",
                 useFixedRecordFile = "true",
                 appendToExistingFile = "false",
                 truncateRecords = "error",
                 exitOnFileSaveError = "false",
                 noOfRetries = "10", retryInterval = "5",
                 isCertified = "false",
                 subscribeSubjectName = "SUB.PUB007.FT2",
                 useExplicitConfirmation = "true",
                 ECMSubscriberName = "ECM.PUB007.FT2",
                 transferType = "BlockModeECM"
}

Copyright © Cloud Software Group, Inc. All rights reserved
Copyright © Cloud Software Group, Inc. All rights reserved