Topic
  • 2 replies
  • Latest Post - ‏2012-10-18T12:40:09Z by SystemAdmin
SATH66
SATH66
8 Posts

Pinned topic Component rule to calculate size of record

‏2012-09-05T12:25:27Z |
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
    repanzer1
    114 Posts

    Re: Component rule to calculate size of record

    ‏2012-09-20T16:59:53Z  
    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
    SystemAdmin
    6184 Posts

    Re: Component rule to calculate size of record

    ‏2012-10-18T12:40:09Z  
    Do you mean component rule or map rule?
    If map rule try this:

    = NUMBERTOTEXT(SIZE(TEXT(YourRecord:Yourfile)))

    If your record has a terminator then subtract 1 from SIZE result.

    = NUMBERTOTEXT(SIZE(TEXT(YourRecord:Yourfile) -1))