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

Job automation using FTP method


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subinraj

New User


Joined: 04 Sep 2007
Posts: 16
Location: Bangalore

PostPosted: Tue Jun 10, 2008 1:18 pm
Reply with quote

Hi

I need to run a job if a particular file is present in a certain location. The method used is : to check if a new file is present in location and trigger the job. However if the file is not present in location, then the job should not abend.

The base question is : Can a FTP step be coded to receive a file and if the file is not present in the FTP location, job should not abend?

[/list]
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jun 10, 2008 1:53 pm
Reply with quote

Can you not use FTP to list datasets on a remote site, and if the dataset is present get it, else end normally.

Might need a REXX or SORT step between the list and get which sets a return code depending on the presence or not of the dataset.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Jun 10, 2008 1:58 pm
Reply with quote

Hi,
what causes the job to abend ? Normally when I've used FTP, and no EXIT is coded, the job returns a 0 return code even if has failed to find the file.



Gerry
Back to top
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Tue Jun 10, 2008 2:17 pm
Reply with quote

Hi,

If you have CONNECT:R you can create a process where NDM job is executed when the file is created in the system.

Or you are using a scheduler, can add dependency for the FTP job to run once the file is created in the system.
Back to top
View user's profile Send private message
subinraj

New User


Joined: 04 Sep 2007
Posts: 16
Location: Bangalore

PostPosted: Tue Jun 10, 2008 3:06 pm
Reply with quote

Thanks for the response .. When no Exit is coded the FTP step is not giving a return code of 8 . icon_biggrin.gif
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts UC Automation TSO/ISPF 9
No new posts A very ingenious mainframe automation... CA Products 1
No new posts CA Workload Automation event code help CA Products 10
Search our Forums:

Back to Top