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 capture output of "TSO WHOHAS" in a dataset

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

New User


Joined: 13 Apr 2007
Posts: 5
Location: india

PostPosted: Thu Jun 17, 2010 7:28 am    Post subject: How to capture output of "TSO WHOHAS" in a dataset
Reply with quote

I tried following :-

/*************rexx*************/
A=OUTTRAP('VAR.')
ADDRESS TSO 'WHOHAS' "'T884.PX952F.AVI.PRIVACY.JUN10'"
SAY 'OUTPUT !' VAR.1
A=OUTTRAP(OFF)
SAY 'OUTPUT !' VAR.0

but got the output as :-

T884.PX952F.AVI.PRIVACY.JUN10

Job Name Scope Type Status
-------- ------- ---- --------
OT91434 Systems EXCL Using
OUTPUT ! IKJ56716I EXTRANEOUS INFORMATION WAS IGNORED: 00130000
OUTPUT ! 1
***
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Jun 17, 2010 8:31 am    Post subject: Reply to: How to capture output of "TSO WHOHAS" in
Reply with quote

I'm reading this post thinking "and ???". Anyway, to respond to the topic title, I'd say "run it in batch, pointing the SYSTSPRT DD statement to a dataset rather than sysout.".

Beyond that, seeing as WHOHAS isn't a (standard) TSO command, I don't know what you were expecting for results. There are other topics on the same issue of a dataset being in use, and I believe a few offer some other options.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Thu Jun 17, 2010 1:21 pm    Post subject:
Reply with quote

If you are using the version of WHOHAS downloaded from the CBT tape it uses TPUT to issue the messages. You will not be able to trap it using OUTTRAP and it will no appear in the SYSTSPRT dd output
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Jun 17, 2010 10:48 pm    Post subject: Reply to: How to capture output of "TSO WHOHAS" in
Reply with quote

Code:
IKJ56716I EXTRANEOUS INFORMATION WAS IGNORED: 00130000


You have a line number somewhere where it should not be.
Back to top
View user's profile Send private message
sai.bhagavatula

New User


Joined: 05 Mar 2007
Posts: 10
Location: Sydney, Australia

PostPosted: Tue Jun 22, 2010 9:55 am    Post subject:
Reply with quote

I guess your target is to get the list of users holding a particular file.

So, instead of doing this, you can directly use QUERYENQ.

Google and you should find this:

http://www.sillysot.com/mvs/index.htm?queryenq.htm
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


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