Hi All
Need: I need to know whether a file is exist in a specific dir. If exist i need to create a .ok file.
Is there is any way to do or Can try to open the file like below and if the below command is suceed, then i can create a .ok file.
SeqFiles = File Path
OpenSeq SeqFiles: aFileName TO Jname
Please guide me.
Thanks
DS User
Server Routine to check whether the file exist or not
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The OpenSeq statement will take its Else clause if the file does not exist.
Note that the file will be open for writing and locked - you will still need a CloseSeq statement once you have performed your test.
You could also call DSExecute to execute a UNIX test -f pathname command (yes, even though you're running on Windows).
Note that the file will be open for writing and locked - you will still need a CloseSeq statement once you have performed your test.
You could also call DSExecute to execute a UNIX test -f pathname command (yes, even though you're running on Windows).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I will close it
Thanks Ray
I will close the file. But is it the only way to find the file? Any other command is there to check?
Regards
DS User
I will close the file. But is it the only way to find the file? Any other command is there to check?
Regards
DS User
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: