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

Sending JCL to JES via BAT files on PC


IBM Mainframe Forums -> PC Guides & IT News
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Paul Hacker

New User


Joined: 02 Oct 2008
Posts: 15
Location: Tyler, texas

PostPosted: Fri Jan 09, 2009 8:05 pm
Reply with quote

The problem is this:

I use a BATCH file to send a JCL to the mainframe. The users have to put in userid and password 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 thw batch file to tell them via echo, or email from the mainframe, that it failed?

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Sat Jan 10, 2009 12:42 am
Reply with quote

Hello,

Suggest you talk with your desktop/network support people for some way to do this on the desktop.

If the jcl actually gets submitted and there is an issue running on the mainframe, additonal jcl might be added to the job to deal with the error (i.e. send an e-mail), but if the process never connects/submits, the mainframe batch job will never run.
Back to top
View user's profile Send private message
Paul Hacker

New User


Joined: 02 Oct 2008
Posts: 15
Location: Tyler, texas

PostPosted: Fri Jun 12, 2009 11:08 pm
Reply with quote

Hello.

Well I used Quick basic to do the screens and do error checking. Using that I was able to verify the files on the server were there before sending them across. Also the users could cut-n-paste names and dates right on the screens.

Thanks for the help.
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Sat Jun 13, 2009 3:14 am
Reply with quote

Does quick basic have an ftp client library? If so you can submit jobs directly to the job queue on the mainframe via ftp. You can even check the job status in the queue:

www.ibm.com/developerworks/systems/library/es-zosbatchjavav/index.html
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Sat Jun 13, 2009 7:08 am
Reply with quote

you can use ftp tp retrieve the job output as well, and then use find or some other command to verify that some string is there as you expect. If the ftp(s) fail, you won't find the string and can put up a message
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 -> PC Guides & IT News

 


Similar Topics
Topic Forum Replies
No new posts JCL to merge two files side by side DFSORT/ICETOOL 3
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:


Back to Top