i am trying to match one record from the first file to one in the second.
when a match i found, i need to see if any of the second file matches meet
the long 'if', if they do not i want to place a .f. in the first file. i can
tell why its not right, i just know it isnt working properly.
Tom
USE c:\testdata\lopdptfl IN 0 SHARED ORDER TAG agdept2 ALIAS lopdptfl
USE c:\testdata\fulopmas IN 0 SHARED ORDER TAG agdept2 ALIAS fulopmas
USE c:\testdata\checkhdr IN 0 SHARED
SELECT lopdptfl
GO TOP
scan
REPLACE ALL ACTIVE WITH .T.
bkey = (PADL(city,6,"0")+PADL(dept,3,"0"))
SELECT fulopmas
DO WHILE .T.
IF EOF()
EXIT
ENDIF
IF (PADL(fulopmas.agency,6,"0")+PADL(fulopmas.dpt,3,"0")=(bkey) and
(fulopmas.iactcode<>"T" AND fulopmas.iactcode<>"D");
OR (fulopmas.iactcode="T") AND (fulopmas.termcd < 60 AND
!INLIST(fulopmas.termcd,30,31,50,20,51)) OR ((fulopmas.termcd >= 60;
AND fulopmas.termcd<>98) AND fulopmas.RETWAGES <> 0) OR
(fulopmas.termcd=98) OR (fulopmas.termcd=30 AND;
MONTH(fulopmas.dtref)=MONTH(checkhdr.procdate) AND
YEAR(fulopmas.dtref)=YEAR(checkhdr.procdate);
AND fulopmas.currwg <> 0))
SKIP
loop
ENDIF
replace lopdptfl.ACTIVE with .F.
ENDDO
endscan
*!* select lopdptfl
*!* set order to dept
*!* report form c:\testdata\inactivedpts.frx to printer for
lopdptfl.active=.F. noconsole
*!* close data