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

REXX and MVS Data Areas


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

New User


Joined: 01 Aug 2007
Posts: 6
Location: chennai

PostPosted: Tue Nov 20, 2007 4:26 pm
Reply with quote

Hi,
I got this code (to display the user name) from this forum, but iam not able to undertand few terms in this can any any one helpme in this.


Code:
/* nombre del usuario */
ascb = storage(224,4) /* psaaold */
asxb = storage(d2x(c2d(ascb)+108),4) /* ascbasxb */
acee = storage(d2x(c2d(asxb)+200),4) /* acee */
unam = storage(d2x(c2d(acee)+100),4) /* aceeunam */
user_name=strip(storage(d2x(c2d(unam)+1),24))
say user_name
exit


Doubts:

1) What does storage(224,4) reffer to?
2) what does this line do --> storage(d2x(c2d(ascb)+108),4) ?

Can any one help me in this.

Title changed from 'Doubt in a program'
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 20, 2007 4:37 pm
Reply with quote

Quote:
got this code (to display the user name) from this forum, but iam not able to undertand few terms in this can any any one helpme in this.


That' s what happens when using posted code...

the rexx is chasing some mvs control blocks,
the comment on the right is the name of the field used ,
also IBM tries, sometimes without success, to use in its naming
some kind of wart to identify the control block to whom the field belongs..

look at the following control block for explanation

PSA, ASCB, ASXB, ACEE
Back to top
View user's profile Send private message
sujesh_prasannan
Currently Banned

New User


Joined: 01 Aug 2007
Posts: 6
Location: chennai

PostPosted: Tue Nov 20, 2007 4:49 pm
Reply with quote

Thanks enrico.... can you please say from where i can get the information regarding the control blocks.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 20, 2007 4:57 pm
Reply with quote

Well, the formal term is Data Areas, and you can read about them here.

To learn more about the STORAGE function, please refer to the fine manual.

O.
Back to top
View user's profile Send private message
sujesh_prasannan
Currently Banned

New User


Joined: 01 Aug 2007
Posts: 6
Location: chennai

PostPosted: Tue Nov 20, 2007 5:04 pm
Reply with quote

thanks.............
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 Store the data for fixed length COBOL Programming 1
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
Search our Forums:

Back to Top