APP PATH TESTING FILEDEF TMP_HOLD DISK \\WF_SERVERNAME\IBI\APPS\TESTING\TMP_HOLD.FTM FILEDEF TMP_HOLD2 DISK \\WF_SERVERNAME\IBI\APPS\TESTING\TMP_HOLD2.FTM MODIFY FILE TMP_HOLD FIXFORM FROM TMP_HOLD2 MATCH COUNTRY CAR MODEL BODYTYPE ON MATCH UPDATE SEATS DATA ON TMP_HOLD2 END
FILE=TMP_HOLD ,SUFFIX=FIX SEGNAME=TMP_HOLD,SEGTYPE=S0 FIELDNAME =COUNTRY ,E01 ,A10 ,A10 ,$ FIELDNAME =CAR ,E02 ,A16 ,A16 ,$ FIELDNAME =MODEL ,E03 ,A24 ,A24 ,$ FIELDNAME =BODYTYPE ,E04 ,A12 ,A12 ,$ FIELDNAME =SEATS ,E05 ,I3 ,A03 ,$
ENGLAND JAGUAR V12XKE AUTO CONVERTIBLE 0 ENGLAND JAGUAR XJ12L AUTO SEDAN 0 ENGLAND JENSEN INTERCEPTOR III SEDAN 0 ENGLAND TRIUMPH TR7 HARDTOP 0
FILE=TMP_HOLD2 ,SUFFIX=FIX SEGNAME=TMP_HOLD2,SEGTYPE=S0 FIELDNAME =COUNTRY ,E01 ,A10 ,A10 ,$ FIELDNAME =CAR ,E02 ,A16 ,A16 ,$ FIELDNAME =MODEL ,E03 ,A24 ,A24 ,$ FIELDNAME =BODYTYPE ,E04 ,A12 ,A12 ,$ FIELDNAME =SEATS ,E05 ,I3 ,A03 ,$
ENGLAND JAGUAR V12XKE AUTO CONVERTIBLE 9 ENGLAND JAGUAR XJ12L AUTO SEDAN 9 ENGLAND JENSEN INTERCEPTOR III SEDAN 9 ENGLAND TRIUMPH TR7 HARDTOP 9
(FOC415) TRANS 1 REJECTED NOMATCH TMP_HOLD ENGLAND JAGUAR V12XKE AUTO CONVERTIBLE 9 (FOC415) TRANS 2 REJECTED NOMATCH TMP_HOLD ENGLAND JAGUAR XJ12L AUTO SEDAN 9 (FOC415) TRANS 3 REJECTED NOMATCH TMP_HOLD ENGLAND JENSEN INTERCEPTOR III SEDAN 9 (FOC415) TRANS 4 REJECTED NOMATCH TMP_HOLD ENGLAND TRIUMPH TR7 HARDTOP 9 0 TRANSACTIONS: TOTAL = 4 ACCEPTED= 0 REJECTED= 4 SEGMENTS: INPUT = 0 UPDATED = 0 DELETED = 0
quote:MODIFY FILE TMP_HOLD
FIXFORM FROM TMP_HOLD2
MATCH COUNTRY CAR MODEL BODYTYPE
ON MATCH UPDATE SEATS
DATA ON TMP_HOLD2
END
MODIFY FILE TMP_HOLD FIXFORM FROM TMP_HOLD2 MATCH COUNTRY ON NOMATCH INCLUDE ON MATCH CONTINUE MATCH CAR ON NOMATCH INCLUDE ON MATCH CONTINUE MATCH MODEL ON NOMATCH INCLUDE ON MATCH CONTINUE MODEL BODYTYPE ON NOMATCH INCLUDE ON MATCH UPDATE SEATS DATA ON TMP_HOLD2 END
Not using MODIFY you won't!! Check it out in the manuals.quote:simple update of a flat file
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
MODIFY FILE TMP_HOLD FIXFORM FROM TMP_HOLD2 MATCH COUNTRY ON NOMATCH INCLUDE ON MATCH CONTINUE MATCH CAR ON NOMATCH INCLUDE ON MATCH CONTINUE MATCH MODEL ON NOMATCH INCLUDE ON MATCH CONTINUE MATCH BODYTYPE ON NOMATCH INCLUDE ON MATCH UPDATE SEATS DATA ON TMP_HOLD2 END
(FOC1291) RECORDS AFFECTED DURING CURRENT REQUEST : 4/INSERT 0 TRANSACTIONS: TOTAL = 4 ACCEPTED= 4 REJECTED= 0 SEGMENTS: INPUT = 4 UPDATED = 0 DELETED = 0