Hi all,
I am trying to finish up a job sequence that sends a success/failure notification if a file is/is not created on the mainframe. Does anyone know how to accomplish this? I assume it would be something like a script checking if file exists after logging into a server via FTP...
I am unsure of what direction to go with this, any suggestions?
Does file exist on mainframe
Moderators: chulett, rschirm, roy
Does file exist on mainframe
Adam Love
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Probably a script, executed via an Execute Command activity, that establishes an FTP connection then tests for the existence of the file. Does FTP into the mainframe support the ls subcommand for ftp?
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yes, but there's a better plan. You can use UNIX utilities as well. For example you can use grep to determine whether your particular file name exists in the ls output. This can be via an Execute Command activity in the job sequence.tiozzo wrote:Ya ls is supported. So I'm thinking... ls and put that list into a file, exit ftp, and run dos to real file line by line looking for my file name. If present do something else. This sound like a good plan?
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.