looking for an elegant way to null a bunch of subfields

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf looking for an elegant way to null a bunch of subfields

  • Creator
    Topic
  • #52357
    Doug Stelley
    Participant

      In an A31 I have to clear out PID12 – PID (end)

      It works if I put @null for each and every destination

      but its tedious to do a copy in a translation with

      @null  –  0(0).PID(0).#13(0).[0]

      @null  –  0(0).PID(0).#13(0).[1]

      @null  –  0(0).PID(0).#13(0).[2]

      @null  –  0(0).PID(0).#13(0).[3]

      @null  –  0(0).PID(0).#14(0).[0]

      @null  –  0(0).PID(0).#14(0).[1]

      etc.

      There must be a better way!

    Viewing 1 reply thread
    • Author
      Replies
      • #73897
        James Cobane
        Participant

          Doug,

          You can simply use the PATHCOPY statement (instead of COPY) to copy @null to the whole field.

          PATHCOPY @null –> 0(0).PID(0).#13(0)

          that will null out all the components of the field.  If you want to null out the whole segment, you can use PATHCOPY for that as well:

          PATHCOPY @null –> 0(0).PID(0)

          Hope this helps.

          Jim Cobane

          Henry Ford Health

        • #73898
          Doug Stelley
          Participant

            it does, Thanks!

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.