Pinned topic Component rule to calculate size of record
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Can any one please inform if there is any component rule to idnetify size of record including pad characters
Updated on 2012-10-18T12:40:09Z at 2012-10-18T12:40:09Z by SystemAdmin
repanzer1 270004M0N0114 Posts
Re: Component rule to calculate size of record2012-09-20T16:59:53ZThis is the accepted answer. This is the accepted answer.What exactly are you trying to do? Component rules go in type trees, and type trees are where you define records, their size, and thier pad characters. How can the type tree make such an identification unless it knows the attributes of the record, such as pad character?
There are 10 types of people in this world. Those who understand binary and those who don't.
SystemAdmin 110000D4XK6184 Posts
Re: Component rule to calculate size of record2012-10-18T12:40:09ZThis is the accepted answer. This is the accepted answer.Do you mean component rule or map rule?
If map rule try this:
If your record has a terminator then subtract 1 from SIZE result.
= NUMBERTOTEXT(SIZE(TEXT(YourRecord:Yourfile) -1))