我使用Microfocus Net Express 5.1(Cobol)。
当我想打开索引顺序文件时,我写了
open input xyzfile
我的问题是:是否有可能将名称“ xyzfile”放在变量中而不是写入
move "xyzfile" to var-file
open input var-file
在此先感谢
来自环境部门;
environment division.
input-output section.
file-control.
select ConfigFile
assign to wFile-folder
organization is line sequential
file status is wStatus.
从工作存储部分;
working-storage section.
01 wFile-folder pic x(256).
01 wStatus pic x(2).
并在您的程序部门下;
move "c:\data\configuration.txt" to wFile-folder
open input ConfigFile
read ConfigFile record
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句