Access the Control blocks

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Access the Control blocks

Post 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 :)
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Access the Control blocks

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access the Control blocks

Post by Anithab »

Hi Enrico,

Thanks for the links It helps but I know lot of reading needs to be done :)
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Access the Control blocks

Post by enrico-sorichetti »

.... I know lot of reading needs to be done
that' s what people with experience have done for ages ;)
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access the Control blocks

Post by Anithab »

I know :) "Rome was not built on a day"
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Access the Control blocks

Post 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]
You do not have the required permissions to view the files attached to this post.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access the Control blocks

Post by Anithab »

Thanks Anuj .. I will start with this :)
MartinPacker
Registered Member
Posts: 14
Joined: Tue May 27, 2014 8:45 pm
Contact:

Re: Access the Control blocks

Post by MartinPacker »

I'm interested in knowing why you want to nose through control blocks. "Idle curiosity" is a good answer, of course. :-)
Martin Packer
Principal Systems Investigator, IBM
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Access the Control blocks

Post 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 ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access the Control blocks

Post 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 :)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”