Blanking whole segment than pass over what is needed

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Blanking whole segment than pass over what is needed

  • Creator
    Topic
  • #50838
    Yamil Velez
    Participant

    Hi All

        I have a PID segment where I just need the MR#, Name, Account Number.  I null all the rest of the fields that I do not need but I was just wondering if there is a easier way of doing this.   I need them to stay in the same position on the segment.

    Thanks

    Yamil

Viewing 2 reply threads
  • Author
    Replies
    • #67721
      Tom Rioux
      Participant

      Yamil,

      One way of doing this is to place a pathcopy in your xlate to copy @null to your PID.   Then, follow that up with your 3 copy commands to copy your fields:

      Pathcopy @null —> PID

      Copy  MRN —> PID

      Copy  Name—> PID

      Copy Acct # —> PID

      Hope this helps…Tom

    • #67722
      Yamil Velez
      Participant

      Hi Thomas

      Thank you for the help it work

    • #67723
      Jim Kosloskey
      Participant

      Yamil,

      Assuming no BULKCOPY or PATHCOPY are in use just COPY the fields you want. The ones you do not COPY won’t get any values.

      If you have a PATHCOPY for the segment and no BULKCOPY, just remove the PATHCOPY and only your COPYs will be effective.

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

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

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,300
Replies
34,445
Topic Tags
288
Empty Topic Tags
10