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

WHOIS command in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 18, 2009 7:58 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Sat Sep 19, 2009 12:53 am
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
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: 8797
Location: Welsh Wales

PostPosted: Sat Sep 19, 2009 1:25 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top