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

Assembler Region size query


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 08, 2011 3:21 am
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

Moderator Emeritus


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

PostPosted: Wed Jun 08, 2011 3:27 am
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).
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: 262

PostPosted: Wed Jun 08, 2011 3:43 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top