View previous topic :: View next topic
|
Author |
Message |
subinraj
New User
Joined: 04 Sep 2007 Posts: 16 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
abin
Active User
Joined: 14 Aug 2006 Posts: 198
|
|
|
|
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 |
|
|
subinraj
New User
Joined: 04 Sep 2007 Posts: 16 Location: Bangalore
|
|
|
|
Thanks for the response .. When no Exit is coded the FTP step is not giving a return code of 8 . |
|
Back to top |
|
|
|