MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bat files and sending JCL to JES

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Deaf Smith
Beginner


Joined: 22 Jul 2008
Posts: 18
Topics: 12

PostPosted: Fri Jan 09, 2009 9:30 am    Post subject: Bat files and sending JCL to JES Reply with quote

I use a BATCH file to send a JCL to the mainframe. The users have to put in userid and password in the batch file and this is part of the FTP command file that then sends the JCL to the Z10.

Well sometimes they fail to put in the correct name or password and the FTP fails. But they don't know it failed.

Is there some error checking that will detect a failed FTP and then allow the batch file to tell them via echo in the bat file OR the mainframe that it failed?

Thanks!
_________________
Deaf
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Jan 09, 2009 6:51 pm    Post subject: Reply with quote

You can use the same techniques I posted in your previous question if you want to use a batch file (.cmd) but Rexx would be a better choice because error handling is easier to implement than in a batch file.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group