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
 

 

Is there any batch utility to execute the MVS system command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
ananth86

New User


Joined: 10 Jun 2009
Posts: 59
Location: Hyderabad

PostPosted: Fri Oct 02, 2009 8:16 pm    Post subject: Is there any batch utility to execute the MVS system command
Reply with quote

Hi
I want to execute some set of display commands (like /d u,,,23f4,1) on console is there any batch utility to do that?

Can I write the output of these commands to any output file?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


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

PostPosted: Fri Oct 02, 2009 8:32 pm    Post subject:
Reply with quote

Code:
//JOBNAME  JOB  parameters
// D U,,,23F4,1
//STEP1    EXEC PGM=IEFBR14
//
will issue the command on the console. However, I'm not aware of any way to route the output of the command to a file -- it's called a console command because the output appears on the console.

Be aware that these commands are executed before your job runs so you cannot issue a command, run a step, then issue another command -- both commands will be executed before your step runs.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Fri Oct 02, 2009 8:54 pm    Post subject: Reply to: Is there any batch utility to execute the MVS syst
Reply with quote

You can run SDSF in batch to run commands if you are authorized. The best way for what you want is to use the Rexx interface that was recently added.

If you just want information on devices or system status (DISPLAY command output) you might want to look at the CBT tape for utilities.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Oct 02, 2009 10:02 pm    Post subject:
Reply with quote

The new method is the COMMAND statement for JCL
Code:
//JOBNAME  JOB  parameters
//anyname COMMAND 'D U,,,23F4,1'
//STEP1    EXEC PGM=IEFBR14
//
The commands are still issued at reader time. An advantage is continuing long commands to a new line with X in 73 and continuation in col. 16.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Fri Oct 02, 2009 10:32 pm    Post subject: Reply to: Is there any batch utility to execute the MVS syst
Reply with quote

Another approach...

Use the CONSOLE command interface to issue commands. See Appendix C of the Rexx Reference manual. As with SDSF, you have to be authorized. And in my site, you have to be authorized to issue commands from regular JCL.

The major advantage of rexx is that you can issue a command and easily get the command response. Then, have the rexx examine that response and issue a followup command. etc...

Or, as you want, get the command response and write to a file.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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