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
 

 

WHOIS command in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
sreejithpg

New User


Joined: 11 Sep 2009
Posts: 6
Location: india

PostPosted: Fri Sep 18, 2009 7:42 pm    Post subject: WHOIS command in REXX
Reply with quote

I need to get the Owner of the Main frame ids to a file.
How i can use "TSO WHOIS XXXXXX" command in REXX.
After executing this comman i need to get the owner name to a file
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Fri Sep 18, 2009 7:58 pm    Post subject:
Reply with quote

Contact your site support group to determine if this is possible. Most sites do not associate user ids with files, so it is not possible to determine the "owner name to a file" as there is no data about that. Your site may be different -- but only your site support group can tell you that.
Back to top
View user's profile Send private message
sreejithpg

New User


Joined: 11 Sep 2009
Posts: 6
Location: india

PostPosted: Fri Sep 18, 2009 8:04 pm    Post subject: Reply to: WHOIS command in REXX
Reply with quote

I can use the "TSO WHO IS " command in my TSO region.
I need to execute this command through REXX by giving the ID as in put and need to get the output to a PS Dataset .
Can u please help me in coding this in REXX
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Sep 19, 2009 12:53 am    Post subject:
Reply with quote

Show us what you have coded so far, and the results and someone will be happy to help,

after all, this is a help forum not a heres's the code forum.
Back to top
View user's profile Send private message
sreejithpg

New User


Joined: 11 Sep 2009
Posts: 6
Location: india

PostPosted: Sat Sep 19, 2009 1:15 pm    Post subject: Reply to: WHOIS command in REXX
Reply with quote

Hi Sir

My code is below

//JFBR11 EXEC PGM=IKJEFT01
/ISPLOG DD DUMMY,DCB=(RECFM=VBA,LRECL=125,BLKSIZE=27944)
//ISPPROF DD DSN=&&PROFILE,
// DISP=(,DELETE,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1,1),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//ISPPLIB DD DISP=SHR,DSN=SYS1.SISPPENU
//ISPMLIB DD DISP=SHR,DSN=SYS1.SISPMENU
//ISPTLIB DD DISP=SHR,DSN=SYS1.SISPTENU
//ISPSLIB DD DISP=SHR,DSN=SYS1.SISPSENU
//SYSTSPRT DD DSN=AXSSN.OUT.OUT.PRT1,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(200,20),RLSE),
// DCB=(RECFM=FBA,LRECL=121,BLKSIZE=0)
//*YSTSIN DD *
//SYSTSIN DD *
ISPSTART CMD(WHOIS NXXXXHS)
/*
//


The code command "WHOIS NXXXXHS" gives the name of the User ID in my TSO region. But giving the following error while running in Batch.

ISPSTART CMD(WHOIS NXXXXHS) NEWAPPL(BAT)
COMMAND WHOIS NOT FOUND
ISPD123 Invalid command
Command 'WHOIS' not found or contains invalid syntax.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Sep 19, 2009 1:25 pm    Post subject:
Reply with quote

So where is the SYSEXEC or SYSPROC DD statement that contains the code for the CMD invoked
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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