我在 Informix 4gl 中有一个代码,它创建并写入 .4gl 文件。简而言之,它是生成新程序的代码。它在 Informix 中完美运行:**
let p_output = p_prog clipped,".4gl"
start report rpt1 to p_output
output to report rpt1()
finish report rpt1
let run_stmt = "fglpc ",p_prog clipped
run run_stmt returning p_status
if p_status != 0 then
error " Program Compilation failed "
sleep 1
end if
end if
我正在尝试将代码转换为 Genero 以创建和写入 .4gl 文件。
let p_output = "vi ",p_prog clipped,".4gl"
let p_binoutput = p_prog clipped,".4gl"
LET ch_in = base.Channel.create()
CALL ch_in.openFile(p_binoutput,"w")
start report rpt1 TO p_output
output to report rpt1()
finish report rpt1
--let run_stmt = "fglpc ",p_prog clipped
let run_stmt = "fglcomp ",p_prog clipped
run run_stmt returning p_status
if p_status != 0 then
error " Program Compilation failed "
sleep 1
end IF
CALL ch_in.close()
end if
但我不断在 sqlca.sqlerrm 中收到错误消息:
p_prog.4gl: Permission denied.
或者
vi p_prog.4gl: Permission denied
我怎样才能解决这个问题?