Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Way to skip the FTP step (or to avoid the abend)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Way to skip the FTP step (or to avoid the abend)
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

Moderator Team Head


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

PostPosted: Tue Oct 10, 2006 5:42 pm    Post subject: Re: Way to skip the FTP step (or to avoid the abend)
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    Post subject:
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    Post subject: Re: Way to skip the FTP step (or to avoid the abend)
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

Moderator Team Head


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

PostPosted: Wed Oct 11, 2006 8:38 am    Post subject: Re: Way to skip the FTP step (or to avoid the abend)
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

Moderator Team Head


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

PostPosted: Wed Oct 11, 2006 6:14 pm    Post subject: Re: Way to skip the FTP step (or to avoid the abend)
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    Post subject: Re: Way to skip the FTP step (or to avoid the abend)
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
No new posts Xpediter: STEP OVER cobol section Auryn Compuware & Other Tools 0 Thu Feb 22, 2018 9:30 pm
No new posts Need help with ABEND RC=S806 RSN=4 an... chong.zhou All Other Mainframe Topics 3 Fri Feb 09, 2018 12:17 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us