MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

accessing TSO command line thru REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
himanshoo_seth
Beginner


Joined: 18 Oct 2005
Posts: 4
Topics: 4

PostPosted: Wed Nov 16, 2005 10:00 am    Post subject: accessing TSO command line thru REXX Reply with quote

hi
how can I access TSO command line thru rexx.
i need to go 3.14 in TSO in the REXX code.
how can i do that?

regards
himanshoo seth
_________________
Himanshoo Seth
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Nov 16, 2005 10:14 am    Post subject: Reply with quote

If you're trying to get to the SRCHFOR panel, you could try:

ISPEXEC SELECT PGM(ISRSFM)
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Wed Nov 16, 2005 10:33 am    Post subject: Reply with quote

Just another idea.

In ISPF Primary Option Menu Choose 0 Settings.
Now select Function keys in the Menu bar
Select 1. Non-Keylist PF Key settings
Press ENTER key to display alternate keys
For PF13 to PF24. . Instead of HELP, SPLIT give 3.14 for any one of the PF Keys (Say PF24).

Now if you press SHIFT F12 in your regular PC keyboard, you will be directly invoking the Search-For Utility.

Cool Mervyn!! You solved the problem.
Back to top
View user's profile Send private message
saro
Beginner


Joined: 20 Aug 2005
Posts: 11
Topics: 1
Location: chennai

PostPosted: Tue Dec 20, 2005 7:49 am    Post subject: Reply with quote

Mervyn,

This is similar to the question in this thread,but my requirement is different.

my req is,

I want to extract the output of a TSO command which i execute on the command line.

This is the exact senario,

. . . . . . . . . . . . . . . . . . . . . . . . . . .
Menu Options View Utilities Compilers Help
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
Command ===> Scroll ===> CSR

Command - Enter "/" to select action Message Volume
-------------------------------------------------------------------------------
whohas Userid.xxxxx.yyyyy.zzzz *VSAM*
Userid.xxxxx.yyyyy.zzzz.DATA P00011+
Userid.xxxxx.yyyyy.zzzz.INDEX P00011+
***************************** End of Data Set list ****************************
I hit enter typing whohas against the file name.
where WHOHAS is thh command to find who is holding the file currently
and the result TSO issus on screen is

SYS2 >CICS holds SYSDSN SHR: Userid.xxxxx.yyyyy.zzzz ***


PLease help me in knowing how to bring this thro rexx..(i.e) this TSO command should be executed thro rexx and the result should be stored in a dataset or returned to the exec itself.


Thanks in advance.
_________________
Saro

Nothing is great unless God.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Dec 20, 2005 9:16 am    Post subject: Reply with quote

Quote:

my req is, I want to extract the output of a TSO command which i execute on the command line.


saro,

Search this forum for OUTTRAP and you will find many examples. Alternatively check this link which explains in detail about OUTTRAP function.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A330/4.4.5?DT=20020521161835

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Dec 20, 2005 2:08 pm    Post subject: Reply with quote

You'd be better off using a utility that is meant to be called by rexx. Check the ISPF QUERYENQ service. It will give you the information in a form that Rexx can understand without resorting to an unsupported or local command like WHOHAS.
Back to top
View user's profile Send private message Visit poster's website
saro
Beginner


Joined: 20 Aug 2005
Posts: 11
Topics: 1
Location: chennai

PostPosted: Thu Dec 22, 2005 9:13 am    Post subject: Thank you Reply with quote

Kolusu and geezer,

Thanks for your suggestions.I have done it through OUTTRAP.It works.. Smile
_________________
Saro

Nothing is great unless God.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group