Skip to main content

Mapping Manager - @COPY() Function

Micah A. Parker avatar
Written by Micah A. Parker
Updated this week

Product: Mapping Manager


The @COPY() function allows you to copy only a specific portion of the given input resulting in a substring.

@COPY()


@COPY(TOKEN,START,LENGTH)
TOKEN: Value to copy from
START: Position of TOKEN to begin copying from
LENGTH: How many characters to copy over

Examples


Copy Everything from the 5th character over

Below is an example that shows how you can trim the first 4-characters out by marking the starting position as 5, and then copying 255 characters after (which assumes no field will go beyond 255, resulting in copying all content)

@COPY([T:Special Note],5,255)
  • 255 is an arbitrary number that represents the typical max character length of any EDI Field per X12 standards.

Rules

Rule

1-Based Indexing

Start cannot be 0

Length cannot be 0

Notes

rev 7/3/2025

Did this answer your question?