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
 

 

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: 4649
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: 4649
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: 4649
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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm


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