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
 

 

Running Desktop Script from JCL

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

New User


Joined: 07 Jan 2010
Posts: 3
Location: Dublin

PostPosted: Fri Jan 08, 2010 6:48 pm    Post subject: Running Desktop Script from JCL
Reply with quote

Hi there,
I am wondering if it is possible to run any type of shell script using JCL. I am transferring a file from out mainframe to a User folder using UDM. By using this method I have to use the same name on the file every time it gets transmitted.

I would like to
1. Transfer the file to the folder
2. Run another step that calls a script that is located in the same folder as the file, which will then rename the file.

I have two problems,
a. Is it possible to call a script from JCL
b. If so what type of scripting language do I use.

If you can help me I greatly appreciate it.

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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Fri Jan 08, 2010 7:00 pm    Post subject:
Reply with quote

If the other machine is a server, you can use REXEC to run scripts on the other machine. The script resides on and stays on the server, not the mainframe, so all the JCL does is connect to the server (NETRC is helpful for the signon) and then invokes the script.
Back to top
View user's profile Send private message
padair

New User


Joined: 07 Jan 2010
Posts: 3
Location: Dublin

PostPosted: Fri Jan 08, 2010 7:17 pm    Post subject:
Reply with quote

Hi Robert,
Thanks for you quick answer. The file that I am trying to rename is indeed located on a server. I will get searching for REXEC and NETRC.
Thanks for your help.
Padair.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Jan 08, 2010 7:18 pm    Post subject: Reply to: Running Desktop Script from JCL
Reply with quote

Usually your job scheduling system deals with this type of task.

Also, what exactly is UDM?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Fri Jan 08, 2010 7:29 pm    Post subject:
Reply with quote

Glad to hear it helped -- if you have more problems just post something. I've got an REXEC job that was used a few years ago to connect to a Unix server and run a script, so it's a proven method (to me at least). IIRC, it took a bit of tweaking to get it set up correctly but once set up it ran for many months with no problems.
Back to top
View user's profile Send private message
padair

New User


Joined: 07 Jan 2010
Posts: 3
Location: Dublin

PostPosted: Fri Jan 08, 2010 7:40 pm    Post subject:
Reply with quote

Hi Kevin,
Our job scheduling system is rubbish. Normally if we wanted to enter the date we would use //:(TODAY1) , but the scheduling software does not recognisee our UDM steps.

UDM (Universal Data Mover) is the transfer software which our company uses. I think it is manufactured by stonebranch.

I guess I should also look into why our scheduling does not pick up the variables.

Padair.
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 Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm
No new posts Jobs from iseries not running in sequ... lyd All Other Mainframe Topics 4 Mon Jan 18, 2016 1:17 am
No new posts Rexx Program to FTP from desktop to m... vinaykumarthavta CLIST & REXX 4 Fri Oct 23, 2015 9:41 pm


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