I use the following program to sum and move numeric data from one .dbf file to another. It works fine for numeric data. My problem is that I need to move character data from one .dbf to another .dbf. Can someone change the following program so it would accommodate character field data? Thanks in advance.
? 'STARTING REPLACE PREVIOUS MONTHS PROGRAM'
GO TOP
FYTOT = 0
ACCTNUM=ACCT
do while acctnum >=32000 .and. acctnum <=36511
*DO WHILE ACCTNUM >=32000 .AND. ACCTNUM <=32018
? ACCTNUM
USE h:\NOV2002\PB121702
SUM fytd FOR ACCT = ACCTNUM .AND. CATEGORY = 2000 TO FYTOT
USE u:\execr\2003database\NOV2002\NOV
REPLACE fytd WITH FYTOT FOR CATEGORY = 2000 .AND. ACCT=ACCTNUM
* ACCTNUM=ACCTNUM+1
ENDIF
IF ACCTNUM = 36511
ACCTNUM = 37500
ENDIF
ACCTNUM = ACCTNUM +1
GO TOP
SKIP
ENDDO
? 'STARTING REPLACE PREVIOUS MONTHS PROGRAM'
GO TOP
FYTOT = 0
ACCTNUM=ACCT
do while acctnum >=32000 .and. acctnum <=36511
*DO WHILE ACCTNUM >=32000 .AND. ACCTNUM <=32018
? ACCTNUM
USE h:\NOV2002\PB121702
SUM fytd FOR ACCT = ACCTNUM .AND. CATEGORY = 2000 TO FYTOT
USE u:\execr\2003database\NOV2002\NOV
REPLACE fytd WITH FYTOT FOR CATEGORY = 2000 .AND. ACCT=ACCTNUM
* ACCTNUM=ACCTNUM+1
ENDIF
IF ACCTNUM = 36511
ACCTNUM = 37500
ENDIF
ACCTNUM = ACCTNUM +1
GO TOP
SKIP
ENDDO