IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to confirm that file creation is over using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ranjanp

New User


Joined: 02 May 2006
Posts: 25

PostPosted: Fri Sep 05, 2008 11:03 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 05, 2008 11:16 pm
Reply with quote

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
View user's profile Send private message
ranjanp

New User


Joined: 02 May 2006
Posts: 25

PostPosted: Fri Sep 05, 2008 11:42 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Sep 06, 2008 12:11 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Sep 06, 2008 1:28 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Sep 06, 2008 3:02 pm
Reply with quote

Your scheduling software should be able to use dataset creation to trigger the required job(s)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top