Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to confirm that file creation is over using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to confirm that file creation is over using REXX
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

Moderator Team Head


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

PostPosted: Fri Sep 05, 2008 11:16 pm    Post subject: Reply to: How to confirm that file creation is over using RE
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    Post subject:
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

Moderator Team Head


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

PostPosted: Sat Sep 06, 2008 12:11 am    Post subject: Reply to: How to confirm that file creation is over using RE
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

Senior Member


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

PostPosted: Sat Sep 06, 2008 1:28 am    Post subject: Reply to: How to confirm that file creation is over using RE
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: 8619
Location: Back in jolly old England

PostPosted: Sat Sep 06, 2008 3:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us