KB Article #70406
Padding characters functionality in an application
-- Example of using padding characters functionality in an application
-- Use case :
Application with Fixed text and record length 600
File to be transferred has record length 551
Purpose is to use the padding character Hex 20 to fill the rest with spaces
Resolution
* Add at Application level :
Padding Character - 20
* Example
Notes:
The example is using a record lenght of 10, opposed to the problem description in which the record lenght is 551 to 600. As it is just an example, you should adapt it to your particular use case.
* When sending a file with for instance a max. record length of 10, use in the application :
Padding Character : 20 (value Hex. ascii for a space)
Physical File Attributes : Variable Text, Record length 10
Transfer Attributes : Fixed, Record length 10
When sending this file, each record will be padded with N spaces to complete the record to 10 characters length. For instance, a record containing 5 characters will be padded with 5 additional spaces to complete the record length to 10.
* When receiving a file, with for instance a max. record length of 10, use in the application :
Padding Character - 20 (value Hex. ascii for a space)
Physical File Attributes - Fixed Text, Record length 10
Transfer Attributes : Variable, Record length 10
When receiving this file, each record will be padded with N spaces to complete the record to 10 characters length. For instance, a record containing 5 characters will be padded with 5 additional spaces to complete the record length to 10.
* See Special Notice for more details and records examples.