How to invoke cobol jobs on mainframes

Hi,

Does any one of you know how to invoke the cobol jobs on mainframes?

Thanks,
Waseem

Check out this link for information on how you can do it:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B910/4.12?DT=20010621083253

Mind you I have never done this, but did look into it.  Good luck.

Do it this way via ftp:
You need JCL on the mainframe to do the job:
ie.: setup, grab the file, then run whatever on MVS

UNIX side:

[code]
echo "
verbose
open mvsnodename
user username passwd
-- getting mainframe jcl
get 'ISBA.THING.LIB(@THINGIE)' localfile
quote site submit
put localfile
quit
" > /usr/bin/ftp

This requires JES and permissions on the mvs side.

To Submit a job on Mainframe, the script file (on Unix) should be like:

user MyUserID MyPassword
quote site filetype=jes
get 'ABC.DEF.GHI.JKL\(MNO\)'
bye

==========================================
And run it on Unix like:
ftp -n -i FTPServerName < FTPScriptFile

--------------------------------------------------------------------------------------------
Run FTP scripts in batch
--------------------------------------------------------------------------------------------
The FTP Server was on a Mainframe - not sure whether that makes difference.
Had to write two kind of jobs - one to get/put files on Windows, and second on Unix - here's what I had to write:

Unix, AIX+ksh:

To run it in the batch:
ftp -n -i FTPServerName < FTPScriptFile

The file is like: FTPScriptFile

user MyUserID MyPassWord
quote site...anything you want - lrecl if you want to exchanage a seq file, jes if you want to submit a job
put LocalFileName RemoteFilename
bye

=================================

Windows: (Win2k)

To run it in the batch:
ftp -n -s:FTPScriptFile MyHostName

The file is like: FTPScriptFile

USER MyUserID 
MyPassWord
prompt n
quote site lrecl=999999999
put LocalFileName RemoteFilename
bye

=================================