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

Way to skip the FTP step (or to avoid the abend)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SarumathiManoharan

New User


Joined: 27 Sep 2006
Posts: 4

PostPosted: Tue Oct 10, 2006 6:38 am
Reply with quote

Hi,

Please help me out a way to skip the FTP step (or to avoid the abend) when the file is not available in the server to receive from the remote system. I submit the FTP through JCL in mainframes.

Thanks in advance,
Saru
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Oct 10, 2006 5:42 pm
Reply with quote

Use a directory list (dir or ls) to determine if the file is present on the server or not. From there, you can determine whether or not to run the FTP step.
Back to top
View user's profile Send private message
SarumathiManoharan

New User


Joined: 27 Sep 2006
Posts: 4

PostPosted: Tue Oct 10, 2006 8:22 pm
Reply with quote

Hi,

Thanks a lot for the solution.
Back to top
View user's profile Send private message
SarumathiManoharan

New User


Joined: 27 Sep 2006
Posts: 4

PostPosted: Tue Oct 10, 2006 9:35 pm
Reply with quote

Hi,

Is it possible to use IF statements in FTP commands. The process of skipping the FTP step if the file is not available in the Remore server needs to be automated.
I would like to know if the file is available in the server and if the file is not available the FTP step to GET the file from the remote server needs to be skipped.

Thanks,
saru
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 11, 2006 8:38 am
Reply with quote

SarumathiManoharan wrote:
Is it possible to use IF statements in FTP commands.

Logon to the FTP server. Type "help". The server will return a list of all of its supported FTP commands. I doubt you'll find "if", but you never know.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 11, 2006 6:14 pm
Reply with quote

If the file is not available on the server, then why are you scheduling your FTP job? Why isn't your schedule setup to not run until the required file is present?
Back to top
View user's profile Send private message
SarumathiManoharan

New User


Joined: 27 Sep 2006
Posts: 4

PostPosted: Wed Oct 11, 2006 7:03 pm
Reply with quote

Hi,

The FTP needs to be automated in the production trail. The FTP file to be received is from the other system. Due to some technical problems on other system, the file might not be available in the server but the job scheduled in our system would start executing the FTP step (as it done thru scheduler).

Thanks,
Saru
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Can I skip certificate validation whe... All Other Mainframe Topics 0
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts After newcopy the CICS program user f... CICS 7
No new posts User ABEND U0476. Need help. IMS DB/DC 1
No new posts SAS Step execution statistics All Other Mainframe Topics 0
Search our Forums:


Back to Top