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
 

 

how to get the command responese to dataset?

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

New User


Joined: 20 Jan 2008
Posts: 4
Location: Hong Kong

PostPosted: Mon Feb 18, 2008 4:22 pm    Post subject: how to get the command responese to dataset?
Reply with quote

Hi all

Could anyone tell me how to get the result of a console command.
My requirement is that, when I issue 'D SMF' by a job using 'PGM=SDSF', I want to get back the result to a dataset, so that i can write a rexx to recognize which dataset is required to dump.

Thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Feb 18, 2008 4:37 pm    Post subject: Reply to: how to get the command responese to dataset?
Reply with quote

With a proper system setup, You can save some work..

check that the smf dataset switch exit is implemented in Your shop..
with this exit activated every time a switch will occur the appropriate smf dump procedure will be started

whith the help of Your shop scheduler product, or with the Jes* automatic command facility every day at midnight
issue the command to switch the smf dataset recording to a new one

everything, proceeding in this way, will be automated

no need to write anything to find out which datasets must be dumped icon_lol.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Feb 18, 2008 4:42 pm    Post subject:
Reply with quote

You can issue SDSF command directly from within COBOL/REXX/CLIST. That includes the PRINT command.

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

New User


Joined: 20 Jan 2008
Posts: 4
Location: Hong Kong

PostPosted: Mon Feb 18, 2008 5:00 pm    Post subject:
Reply with quote

Thanks all, it is very useful for me. icon_biggrin.gif
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 Fail to change physical VSAM filename... jacobdng CICS 5 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am


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