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
 

 

Job automation using FTP method

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Job automation using FTP method
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 10, 2008 1:53 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Tue Jun 10, 2008 1:58 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Automation of data entry using Rexx i... zingy.rajeev CICS 0 Mon Aug 22, 2016 4:11 pm
No new posts Need help with Oracle Dynamic SQL: Me... Anoop Chandran1984 COBOL Programming 1 Sat Feb 13, 2016 7:27 am
No new posts Automation in DB2 chhabraravneet DB2 4 Fri Dec 11, 2015 9:59 pm


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