Hi,
my COBOL's a bit rusty, please can someone refresh my memory how to check if a file exists from a cobol routine.
I'm using Realia cobol, at the moment I have:
This should give me the result in FF.LST, then I'd need to read FF.LST to find if the file exists.
What would be the accepted way to do this in cobol? (how do I access STDIN/OUT ?)
Thanks for any help
my COBOL's a bit rusty, please can someone refresh my memory how to check if a file exists from a cobol routine.
I'm using Realia cobol, at the moment I have:
Code:
STRING 'DIR C:\HAD\' FLD-FILE-NAME (DOC-IND) ' > FF.LST'
LOW-VALUES DELIMITED BY SIZE INTO DOS-COMMAND
CALL 'DOS_EXEC_COMMAND' USING DOS-COMMAND.
This should give me the result in FF.LST, then I'd need to read FF.LST to find if the file exists.
What would be the accepted way to do this in cobol? (how do I access STDIN/OUT ?)
Thanks for any help