Data Replication 2
Results 1 to 2 of 2

Thread: Element Counter attribute

  1. #1
    tonycate is offline Junior Member
    Join Date
    Nov 2006
    Rep Power

    Question Element Counter attribute

    The help documentation describes this attribute as allowing you to assign a varible to specify the number of elements in an array. Does that mean that if the element is an Array with a capacity of 10 and only one element is populated, Attunity will handle blank filling the remaining elements so that data alignment on the AS400 is correct?

  2. #2
    Join Date
    Sep 2006
    Rep Power
    Can you please clarify what datasource you are accessing on the AS/400. The 'counter' attribute in ADD is used mostly with file system datasources such as VSAM and DISAM (both not native on AS/400 though DISAM works there).

    In general, when you are working with Cobol where you have OCCURS DEPENDING ON constructs, the COUNTER field is like the DEPENDING ON field.

    When entering an XML document that is to be converted into an in-memory structure (e.g. Cobol's) the counter is set according to how many elements of the array were given on input. The rest of the elements are set to NULLS.
    By Dror Harari

    To Find Out more About Attunity Technology:
    Contact Us

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts