![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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. |
|
||||
|
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 ================================= |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|