Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Sending JCL to JES via BAT files on PC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News
Author Message
Paul Hacker

New User


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

PostPosted: Fri Jan 09, 2009 8:05 pm    Post subject: Sending JCL to JES via BAT files on PC
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
References
Moved: Fri Jan 09, 2009 8:11 pm by superk From Other Mainframe Topics to PC Guides & IT News
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 13608
Location: 221 B Baker St

PostPosted: Sat Jan 10, 2009 12:42 am    Post subject:
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: 7
Location: Tyler, texas

PostPosted: Fri Jun 12, 2009 11:08 pm    Post subject:
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

New User


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

PostPosted: Sat Jun 13, 2009 3:14 am    Post subject:
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:

http://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: 402
Location: Mumbai

PostPosted: Sat Jun 13, 2009 7:08 am    Post subject: Reply to: Sending JCL to JES via BAT files on PC
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News All times are GMT + 6 Hours
Page 1 of 1