Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4648
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: 4648
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: 2033
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: 8593
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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us