View previous topic :: View next topic
|
Author |
Message |
rikdeb
New User
Joined: 19 Jan 2009 Posts: 63 Location: hyderabad
|
|
|
|
Hi all,
Came up with a scenario where we need to execute some commands of command prompt from batch,ie, instead of going to the command prompt(option 6) and typing the command, we want to execute those commands from jcl.Is there any utility or any way this can be achieved .
We have all the commands in a ps file. We need to read each record and execute it and if possible capture the log of the executed command.Could you please suggest! |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
What?
Like running a TSO batch job having its SYSTSIN pointing to the commands file ?
That's easy, you only need to run a TSO batch job having its SYSTSIN pointing to the commands file! |
|
Back to top |
|
|
rikdeb
New User
Joined: 19 Jan 2009 Posts: 63 Location: hyderabad
|
|
|
|
Yes..I am not aware of it . could you provide any sample jcl or reference.
This is what i want to do: Suppose my file have these commands:
Code: |
REMOVE I1612XX GROUP(MYGROUP) OWNER(MYGROUP)
REMOVE I171 GROUP(MYGROUP) OWNER(MYGROUP)
CONNECT I151 GROUP(MYGROUP) OWNER(MYGROUP) AUTHORITY(USE)
CONNECT I151 GROUP(MYGROUP) OWNER(MYGROUP) AUTHORITY(USE) |
So, i want to execute these from batch, instead of going onto option 6 and executing REMOVE I1612XX GROUP(MYGROUP) OWNER(MYGROUP) and so on..
Any sample job would be of great help! Thanks in advance |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Code: |
//RACFSTEP EXEC PGM=IKJEFT01
//SYSTSIN DD DSN=your dataset,DISP=SHR
//SYSTSPRT DD SYSOUT=*
|
|
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
See the Running terminal sessions as batch jobs chapter in the TSO/E General Information manual for your z/OS release for more information. |
|
Back to top |
|
|
rikdeb
New User
Joined: 19 Jan 2009 Posts: 63 Location: hyderabad
|
|
|
|
Thanks a ton every one for your help and valuable suggestions! |
|
Back to top |
|
|
|