Changeset 297


Ignore:
Timestamp:
Dec 5, 2008, 10:47:21 AM (16 years ago)
Author:
George Lilly
Message:

fixes to FIELDSC0CDIC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CDIC.m

    r296 r297  
    106106 S C0CFI=0 S C0CFJ=C0CF
    107107 K @C0CFRTN ; CLEAR THE RETURN ARRAY
    108  F  Q:$P(C0CFJ,".",1)'=C0CF  D ; FOR THE C0CF FILE AND ALL SUBFILES INCLUSIVE
     108 F  Q:C0CFJ'[C0CF  D ; FOR THE C0CF FILE AND ALL SUBFILES INCLUSIVE
     109 . ;W "1: "_C0CFJ," ",C0CFI,!
    109110 . F  S C0CFI=$O(^DD(C0CFJ,C0CFI)) Q:+C0CFI=0  D  ; EVERY FIELD
    110  . . ;W C0CFJ," ",C0CFI,!
     111 . . ;W "2: "_C0CFJ," ",C0CFI,!
    111112 . . S C0CFN=$P(^DD(C0CFJ,C0CFI,0),"^",1) ;PULL FIELD NAME FROM ^DD
     113 . . ;W "N: ",C0CFN,!
    112114 . . I $D(@C0CFRTN@(C0CFN)) D  ; IS THIS A DUPLICATE?
    113  . . . ;W "DUPLICATE FOUND! ",C0CFJ," ",C0CFI," ",C0CFN,!,@C0CFRTN@(C0CFN),!
     115 . . . W "DUPLICATE FOUND! ",C0CFJ," ",C0CFI," ",C0CFN,!,@C0CFRTN@(C0CFN),!
    114116 . . . S @C0CFRTN@("M",@C0CFRTN@(C0CFN),C0CFN)=C0CFJ_"^"_C0CFI
    115117 . . E  S @C0CFRTN@(C0CFN)=C0CFJ_"^"_C0CFI
Note: See TracChangeset for help on using the changeset viewer.