Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Send JCL from Unix to MVS using SCP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
pravle

New User


Joined: 06 Jun 2006
Posts: 8

PostPosted: Tue Apr 21, 2009 2:12 pm    Post subject: Send JCL from Unix to MVS using SCP
Reply with quote

Hi,

I'm trying to send a JCL from Unix to Mainframes using SCP. The current process uses FTP to achieve this.
There are 2 parts to the process in our current environment using FTP
1) Transfer file from Unix to MVS dataset
2) Send JCL to JES Internal reader to trigger futher job

I have been able to do the first one using SCP.
For the second part i.e. sending JCL to JES through SCP, not able to find comparable command.

Current sample used with FTP:
QUOTE SITE FILETYPE=JES
put SCPJOB.TXT

The .TXT file is the JCL to be submitted.

Could anyone suggest how to do this with SCP or any pointers to some documents?

Thanks.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Apr 21, 2009 3:42 pm    Post subject: Reply to: Send JCL from Unix to MVS using SCP
Reply with quote

IBM Ported Tools for z/OS User's Guide.
Back to top
View user's profile Send private message
pravle

New User


Joined: 06 Jun 2006
Posts: 8

PostPosted: Thu Apr 30, 2009 4:57 pm    Post subject: Reply to: Send JCL from Unix to MVS using SCP
Reply with quote

Thanks Kevin. Based on that manual I reached another link
http://www-03.ibm.com/servers/resources/servers_eserver_zseries_zos_unix_pdf_docs_fotza105.pdf
Following example specify how to do SSH copy

- Copying from the z/OS UNIX file system to a PDS: ssh user@test.com "cp ssh.log \"//’USER.SSH.LOG(LOG1)’\" "

- Copying from the z/OS UNIX file system to a sequential data set: ssh user@test.com "cp ssh.log \"//’USER.SSH.LOG2’\" "

As can be seen, these are used to copy PDS member or sequential data set to MVS.

Like FTP has following way to send to Z/OS internal reader like
site filetype=JES
And then firing put command sends it to internal reader.
Is there similar command through SSH where it can transfer to JES?
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us