IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to capture output of "TSO WHOHAS" in a dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Jun 17, 2010 8:31 am
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: 262

PostPosted: Thu Jun 17, 2010 1:21 pm
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

Global Moderator


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

PostPosted: Thu Jun 17, 2010 10:48 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:

Back to Top