Originally posted by: repanzer
It’s been a while since I had to define a flat file, but either something escapes me, or I have to use a component rule, but I don’t want to.
I have an input file with one record and that record has 2 fixed fields. The first field is a 5 byte state field, and should always contain at least 2 bytes of data. So not only is it required, it has to be at least 2 bytes long. I define it as 2 min/5 max bytes, pad to 5 spaces. If I put an “A” in there, it fails, because it’s less then two bytes, but if I put in all spaces, it passes, even though I have it as min 2 bytes.
I believe it's because it didn’t find any data, so it doesn’t care that it’s min 2 bytes, but it’s a required field and all pad characters should equate to a failure.
The only way I can find is to put $>” “ as a component rule, but is that really necessary? Is there no way for it to treat all pad characters as required and have the type or data invalid by just defining the type properties in type designer?
Thanks!
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender