HRL Optional segments

Clovertech Forums Cloverleaf HRL Optional segments

  • Creator
    Topic
  • #121255
    Jim Kosloskey
    Participant

      Cloverleaf 21 and 22. I recently had the need to produce HRL segments optionally.

      The HRL definition does not have an obvious specification of segment optionality. In the noted releases (and perhaps before, I just do not recall) this can be accomplished.

      The situation is an HRL made up of 3 VRL formats.

      • None of the VRL Formats have any defaults or any other settings which would automatically cause a field or fields to be populated.
      • The terminator value is set (\x0d) in each VRL Global Properties.
      • So, the HRL has seg1, seg2, and seg3 specified as segments (those are the 3 VRLs).
      • Under certain conditions, I only wanted seg1 to be produced in an OB record and in other conditions I wanted either seg2 and seg3 or just one of those produced.

      It turns out how this can be accomplished (in the noted releases) is to click on ‘Active Null’ in the ‘Empty Segment Handling’ Panel (the ‘Fill Spaces/Add Terminator’ button is set by default) and only populate in the Xlate those segments I want produced.

      It is really quite straightforward.

      I attached a Word Document hopefully it actually gets attached.

       

      Attachments:
      You must be logged in to view attached files.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • You must be logged in to reply to this topic.