The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rm-cobol 85 jgt UNIX and Linux Applications 0 03-18-2008 12:31 PM
Solaris Unix Is Coming to IBM Mainframes - IT Jungle iBot UNIX and Linux RSS News 0 08-22-2007 11:20 AM
File FTP to Unix from Mainframes. videsh77 UNIX for Advanced & Expert Users 5 08-07-2007 11:58 AM
background jobs exit status and limit the number of jobs to run GrepMe Shell Programming and Scripting 1 06-11-2007 07:56 PM
FTP file to Mainframes bhgopi UNIX for Dummies Questions & Answers 1 08-28-2005 10:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-18-2007
ahmedwaseem2000 ahmedwaseem2000 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Bangalore
Posts: 219
How to invoke cobol jobs on mainframes

Hi,

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

Thanks,
Waseem
  #2 (permalink)  
Old 04-18-2007
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 228
Check out this link for information on how you can do it:
http://publibz.boulder.ibm.com/cgi-b...20010621083253

Mind you I have never done this, but did look into it. Good luck.
  #3 (permalink)  
Old 04-19-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,807
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.
  #4 (permalink)  
Old 07-24-2007
YogeshTheDevil YogeshTheDevil is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 1
Submit jobs through FTP

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
=================================
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0