Page 1 of 1

Access the Control blocks

Posted: Tue May 27, 2014 12:02 am
by Anithab
Hi all,

How do we develop the art of reading the control blocks

Code: Select all

/*REXX*/
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
I was able to understand the above code in parts like what each and every line of code does seperately

But what I do not understand is

How is PSAOLD related to ASCBASXB which is related to ACEE and ACEEUNAM

How does one know or develop this knowledge or does it come by experience or does it have a quickref

like if you want to get a user name you need to get this , this and this

Pointers and suggesions will be very much helpful :)

Re: Access the Control blocks

Posted: Tue May 27, 2014 3:21 am
by enrico-sorichetti
the mother of all the control blocks info is/are


z/OS V1R13: MVS Data Areas Volume 1
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093243

z/OS V1R13: MVS Data Areas Volume 2
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093241

z/OS V1R13: MVS Data Areas Volume 3
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093421

z/OS V1R13: MVS Data Areas Volume 4
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093446

z/OS V1R13: MVS Data Areas Volume 5
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093504

z/OS V1R13: MVS Data Areas Volume 6
http://publibz.boulder.ibm.com/cgi-bin/ ... 0913093559


here is the link to some zOS manuals
http://publibz.boulder.ibm.com/cgi-bin/ ... s/all13be9

Re: Access the Control blocks

Posted: Tue May 27, 2014 11:40 am
by Anithab
Hi Enrico,

Thanks for the links It helps but I know lot of reading needs to be done :)

Re: Access the Control blocks

Posted: Tue May 27, 2014 11:45 am
by enrico-sorichetti
.... I know lot of reading needs to be done
that' s what people with experience have done for ages ;)

Re: Access the Control blocks

Posted: Tue May 27, 2014 12:09 pm
by Anithab
I know :) "Rome was not built on a day"

Re: Access the Control blocks

Posted: Tue May 27, 2014 7:31 pm
by Anuj Dhawan
Along with the great collection from Enrico, You might want to read through this as a starter:



You can download it from here:

[center]
31 zNibbler (zOS Control Blocks).pdf
[/center]

Re: Access the Control blocks

Posted: Tue May 27, 2014 9:40 pm
by Anithab
Thanks Anuj .. I will start with this :)

Re: Access the Control blocks

Posted: Tue May 27, 2014 10:15 pm
by MartinPacker
I'm interested in knowing why you want to nose through control blocks. "Idle curiosity" is a good answer, of course. :-)

Re: Access the Control blocks

Posted: Tue May 27, 2014 10:37 pm
by enrico-sorichetti
Because they are there

the same reply
Because they are there
was given by George Mallory when He was asked ...
Why you climb mountains ?

Re: Access the Control blocks

Posted: Tue May 27, 2014 11:45 pm
by Anithab
Hi Martin,

I always have a fad of knowing things happening at back ground and since I don't get the oppurtunity to creating a product or in system programming .. All I could do is "reasearch and develop"

Also welcome to forum your expertise is a bliss for many of us :)