View previous topic :: View next topic
|
Author |
Message |
ranjanp
New User
Joined: 02 May 2006 Posts: 25
|
|
|
|
Hi All,
How can I know when a file creation is complete using REXX?
Let me explain my requirement,
I have a mainframe job which creates datasets. These dataset are used by some scripts which run on a regular frequency and create few text reports on a FTP server. We dont know anything about this script code and all.
Now I need to submit a mainframe job automatically once the creation of these ftp text file is over. How can I check when the creation of this text file is complete at the FTP site and then submit my mainframe job using REXX? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
It's not clear at all what you're trying to do or where a REXX exec will be required. Where is this exec running exactly - in batch on your system or over at the FTP site? Are you talking about a process where you need cross-platform communication (i.e. an application that's using TCP/IP sockets)?
Could you maybe layout the process steps and then indicate where you need some assistance? |
|
Back to top |
|
|
ranjanp
New User
Joined: 02 May 2006 Posts: 25
|
|
|
|
as i stated earlier, i just want to know if it is possible to check the existence of a txt file using REXX just like we use SYSDSN incase of mainframe dataset..
the only difference here is that the reports are getting created at runtime and I know the completion using REXX. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I'm still not following, I guess because it's Friday and my brain is fried. I'm not seeing the tie-in to where a REXX exec would be used.
In your original post, you asked "How can I check when the creation of this text file is complete at the FTP site". If FTP is involved, you can use the FTP LS (list) or DIR (directory) sub-commands to return a list of files present on the FTP server back to your calling FTP client. These lists can be read and processed like any other file.
Maybe I'm reading too much into this, but it almost sounds as if you want to write your own file-watch program, in which case I don't think REXX would be the tool to use.
Can't your job scheduling system(s) and/or system file transfer system(s) handle this task for you? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
check the existence of a txt file using REXX just like we use SYSDSN incase of mainframe dataset.. |
Can you explain what you mean by 'txt file'? What is it? Where is it? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Your scheduling software should be able to use dataset creation to trigger the required job(s) |
|
Back to top |
|
|
|