Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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 -> Other Mainframe Topics
Author Message
subinraj

New User


Joined: 04 Sep 2007
Posts: 7
Location: Trivandrum

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
References
PostPosted: Tue Jun 10, 2008 1:18 pm    Post subject: Re: Job automation using FTP method Reply with quote

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2893
Location: Brussels once more ...

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: 445

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: 154

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: 7
Location: Trivandrum

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1