IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Running Desktop Script from JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 08, 2010 7:00 pm
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
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

Global Moderator


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

PostPosted: Fri Jan 08, 2010 7:18 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 08, 2010 7:29 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Embeding DB2 sql statements in scirpt... DB2 7
Search our Forums:

Back to Top