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
 
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: 4650
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: 259

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: 2086
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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