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
 

 

Sending JCL to JES via BAT files on PC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News
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    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

dick scherrer

Site Director


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

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: 15
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

Active User


Joined: 20 Feb 2009
Posts: 108
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: 401
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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