我有一列(chgkey)有 17 行记录。如何在同一行中打印前 3 条记录(如 raw1、raw2、raw3)。现在我可以毫无问题地打印 raw1 了。任何帮助,将不胜感激。下面是我的代码。
let rpt.chgkey = null
select * into z_charge.* from charge where charnum in
(select shtwrd_no from crbookid where
crbookid.book_no = rpt.book_no and crbookid.line_no = rpt.line_no )
let scratch = z_charge.chgkey
let rpt.chgkey = scratch
call make_charge_section(scratch) returning rpt.chgkey
print
column 1, ESC, "(s0p12h0s3b4099T", ESC, "&a0.5R"
print
print ESC,"&a15.1R", ESC,"&a15C", rpt.chgkey