Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Assembler Region size query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Thanatopsis

New User


Joined: 02 Dec 2010
Posts: 7
Location: Houston

PostPosted: Wed Jun 08, 2011 12:29 am    Post subject: Assembler Region size query
Reply with quote

Hello,

I was wondering if anyone knew offhand if there is an SVC or system call in assembler with which a program can look up its region size (total size and/or available etc).

Thanks
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 08, 2011 3:21 am    Post subject: Reply to: Assembler Region size query
Reply with quote

Try rummaging through the JFCB (example using R1). Not sure of the JFCB DSECT name, but it's probably in SYS1.MACLIB or SYS1.MODGEN -

Code:

         L     R1,X'21C'            POINT TO 'TCB'
         L     R1,X'B4'(,R1)        POINT TO 'JFCB'

Bill
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 08, 2011 3:27 am    Post subject:
Reply with quote

Hello,

If you are not already comfortable with "Data Areas" (or "control blocks" as we called them), suggest you keep this link handy (or trade up for your release).
http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.iead300/iea2d380445.htm
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 260

PostPosted: Wed Jun 08, 2011 3:43 pm    Post subject:
Reply with quote

I am not aware of any system service that will provide what you are looking for. However the LDA control block has what you want .
Back to top
View user's profile Send private message
Thanatopsis

New User


Joined: 02 Dec 2010
Posts: 7
Location: Houston

PostPosted: Wed Jun 08, 2011 7:09 pm    Post subject:
Reply with quote

Found it. Thanks guys.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm
No new posts Query on IEFBR14 with GDG Ashishpanpaliya JCL & VSAM 4 Tue Nov 07, 2017 8:34 pm
No new posts Query on XMITIP abdulrafi All Other Mainframe Topics 1 Wed Oct 25, 2017 6:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us