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
 
Incase of any FTP error, Need to put the JCL in error state

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Mon Jan 30, 2012 12:06 am    Post subject: Incase of any FTP error, Need to put the JCL in error state
Reply with quote

Hi All,

We have Tivoli work scheduler and one of the AD in it has set of jobs to transfer the file using ftp step.

Sometimes file are not transferred properly because of connection issue. Even though file not transfers properly its respective jobs are getting complete.

I need to put the job in error incase of any ftp failure. Could you please let me know how I can achieve it.

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

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Jan 30, 2012 3:04 am    Post subject:
Reply with quote

Hi,

why isn't the job returning a non zer0 return code if the FTP is unsuccessful ?

What is the PARM information you have coded in the job ?


Gerry
Back to top
View user's profile Send private message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Mon Jan 30, 2012 10:39 am    Post subject:
Reply with quote

Hi,

Please find the PARM details below,

//SFTPRUN1 EXEC PGM=FTP,PARM='10.27.236.99'

Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Jan 30, 2012 11:00 am    Post subject:
Reply with quote

Hi,

if you code this
Code:
PARM='10.27.236.99 (EXIT=8'                     
it will return a rc of 08 if it fails.


Gerry
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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