It looks like this is a fixedposition delimiter flatfile.So create a FFSchemaDefinition with record delimiter (newline) and while creating field definitions choosed fixed-width option and specify start/end positions and your Record Definition will be RECPDD (in the properties set maxRepeat=“unlimited”) and this way the records will parse successfully.Before creating schema you should note start/end field positions based on your functional mapping spec or anything helpfull that tells what the data is about.
Once you build the schema above use pub.flatfile:convertToValues service and check the parsing of the file with appropriate RECPDD recordlist with its field values.
Also refer the ISFlatFileSchema userguide on how to deal with flatfile schemas/dictionaries using WmFlatFile Adapter.
Basically you have to use WmFlatFile package locate formatService and copy this service into your custom package and build the logic to invoke pub.string:numericFormat WmPublic service and set the pattern (0000) and map num 8 it results out as “0008” and finally in the FFSchema under FormatService tab just locate your custom formatService.In the parsing runtime the schema will use formatService and outputs the expected value in the ffValues.
Please see the built-inservices guide about passing inputs to numericFormat service