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
 
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: 8154
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
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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