请老师们赐教
各位老师们好!我试着写下面的句子。结果是“有不能识别的命令和短语”。
请老师帮助写出:表gsb1中不同字段的值加减计算后,
结果放在表gsb2对应字段并更新(如同后面带*的句子)。
非常感谢!
附2个表
CLOSE DATABASES
USE gsb1 ALIAS b1 IN 0
USE gsb2
REPLACE ALL gsb2.n1 WITH b1 ABS(z43+z44+z45) IN gsb2 &将表gsb1中的z43,z44,z45相加,并将结果放到表gsb2的n1里。
*REPLACE ALL n1 WITH ABS(z43+z44+z45)
*REPLACE ALL n2 WITH ABS(z43+z44+z46)
*REPLACE ALL n3 WITH ABS(z43+z44+z47)
*REPLACE ALL n4 WITH ABS(z43+z44+z48)
*REPLACE ALL n5 WITH ABS(z43+z44+z49)
*REPLACE ALL n6 WITH ABS(z43+z44+z50)
*REPLACE ALL n7 WITH ABS(z43+z44+z51)
*REPLACE ALL n8 WITH ABS(z43+z44+z52)
*REPLACE ALL n9 WITH ABS(z43+z44+z53)
*REPLACE ALL n10 WITH ABS(z43+z44+z54)
*REPLACE ALL n11 WITH ABS(z43+z45+z46)
*REPLACE ALL n12 WITH ABS(z43+z45+z47)
*REPLACE ALL n13 WITH ABS(z43+z45+z48)
*REPLACE ALL n14 WITH ABS(z43+z45+z49)
*REPLACE ALL n15 WITH ABS(z43+z45+z50)
*REPLACE ALL n16 WITH ABS(z43+z45+z51)
*REPLACE ALL n17 WITH ABS(z43+z45+z52)
*REPLACE ALL n18 WITH ABS(z43+z45+z53)
*REPLACE ALL n19 WITH ABS(z43+z45+z54)
*REPLACE ALL n20 WITH ABS(z43+z46+z47)
*REPLACE ALL n21 WITH ABS(z43+z46+z48)
*REPLACE ALL n22 WITH ABS(z43+z46+z49)
*REPLACE ALL n23 WITH ABS(z43+z46+z50)
*REPLACE ALL n24 WITH ABS(z43+z46+z51)
*REPLACE ALL n25 WITH ABS(z43+z46+z52)
*REPLACE ALL n26 WITH ABS(z43+z46+z53)
*REPLACE ALL n27 WITH ABS(z43+z46+z54)
*REPLACE ALL n28 WITH ABS(z43+z47+z48)
*REPLACE ALL n29 WITH ABS(z43+z47+z49)
*REPLACE ALL n30 WITH ABS(z43+z47+z50)
*REPLACE ALL n31 WITH ABS(z43+z47+z51)
*REPLACE ALL n32 WITH ABS(z43+z47+z52)
*REPLACE ALL n33 WITH ABS(z43+z47+z53)
*REPLACE ALL n34 WITH ABS(z43+z47+z54)
*REPLACE ALL n35 WITH ABS(z43+z48+z49)
*REPLACE ALL n36 WITH ABS(z43+z48+z50)
*REPLACE ALL n37 WITH ABS(z43+z48+z51)
*REPLACE ALL n38 WITH ABS(z43+z48+z52)
*REPLACE ALL n39 WITH ABS(z43+z48+z53)
*REPLACE ALL n40 WITH ABS(z43+z48+z54)
gsb2.zip
(29.9 KB)
gsb1.zip
(403.24 KB)