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: 260

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: 2104
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 How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts How to get the output from submit com... Joanna2016 CLIST & REXX 10 Tue Feb 06, 2018 7:26 am
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am

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