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
 
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: 8165
Location: East Dubuque, Illinois, USA

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: 2086
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 Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

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