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

Retreiving the MVS account infor using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Wed Jul 01, 2009 10:50 am
Reply with quote

Is any way to retreive MVS account number using REXX?? Like we are retreiving the user name by SYSVAR command.
If we type SAREA,from where its extracting the data?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jul 01, 2009 11:08 am
Reply with quote

Try this:
Code:
/*------------------------------- REXX -------------------------------
 * PROGRAM   : GETPROGN
 * FUNCTION  : GET PROGRAMMER NAME
 * AUTHOR    : OFER
 * DATE      : 04/02/04
 * HOW TO USE:
 *           :
 *------------------------------------------------------------------*/

  NUMERIC DIGITS(32)
       TCB=STORAGE(D2X(540),4)
      JSCB=STORAGE(D2X(C2D(TCB)+180),4)
   SYSJESN=STORAGE(D2X(C2D(STORAGE(D2X(C2D(JSCB)+316),4))+12),8)
       JCT=STORAGE(D2X(C2D(JSCB)+260),4)
   SYSJOBN=STORAGE(D2X(C2D(JCT)+24),8)
       ACT=STORAGE(D2X(C2D(JCT)+56),3)
   SYSPGMR=STORAGE(D2X(C2D(ACT)+24),20)
      ACTL=C2D(STORAGE(D2X(C2D(ACT)+48),1))
   SYSACCT=STORAGE(D2X(C2D(ACT)+49),ACTL)
  IF SYSVAR(SYSISPF)=ACTIVE
  THEN  ADDRESS ISPEXEC 'VPUT (SYSJESN SYSJOBN SYSPGMR SYSACCT) PROFILE'
  ELSE  SAY WORD(SYSJOBN,1)'('SYSJESN') ACCOUNT('SYSACCT')' SYSPGMR

EXIT


O.
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu Jul 02, 2009 10:12 am
Reply with quote

Hi ofer71,
Its working fine.Thanks alot.
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
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