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: 258

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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am

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