☜ | $%PATCODEM[UMPS] by Example | ☞ |
16-Feb–1996, 16:54:35 Routine Save for Library function %PATCODE^STRING ; ; The code below was approved in document X11/1998–21 ; PATCODE(A,PAT,CHARMOD) NEW x,y SET x=$GET(CHARMOD) IF x?1"^"1E.E DO . SET x=$EXTRACT(x,2,$LENGTH(x)) . IF x?1"|".E DO . . SET x=$REVERSE($EXTRACT(x,2,$LENGTH(x))) . . SET y=$REVERSE($PIECE(x,"|",2,$LENGTH(x)+2)) . . SET x=$REVERSE($PIECE(x,"|",1)) . . SET x=$GET(^|y|$GLOBAL(x,"CHARACTER")) . . QUIT . ELSE SET x=$GET(^$GLOBAL(x,"CHARACTER")) . QUIT IF x="" SET x=^$JOB($JOB,"CHARACTER") SET x=$GET(^$CHARACTER(x,"PATCODE",PAT)) IF x="" QUIT 0 SET @("x="_x_"(A)") QUIT x ; === ; ;
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
The information in this page is
NOT authoritative and subject to be modified
at any moment.
Please consult the
appropriate (draft) language standard for an
authoritative definition.
Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.
This page most recently updated on 14-Nov-2023, 21:44:45.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)