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
 

 

Retreiving the MVS account infor using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Retreiving the MVS account infor using REXX
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: 2360
Location: Israel

PostPosted: Wed Jul 01, 2009 11:08 am    Post subject:
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    Post subject:
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    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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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