Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between Independant and Extended RUN-UNITs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
View previous topic :: :: View next topic  
Author Message
SIVA REDDY

New User


Joined: 16 Dec 2009
Posts: 1
Location: Scottdale AZ

PostPosted: Wed Dec 16, 2009 4:48 am    Post subject: Difference between Independant and Extended RUN-UNITs
Reply with quote

What is the basic difference between a Independant RUN-UNIT and an Extended RUN-UNIT. Could you please explain it. Why do we need to run programs in Extended RUN-UNIT - What is the Advantage ?

Also how does independant RUN-UNIT only mean using separate BIND RUN-UNIT and FINISH Statements in Main Program and Sub-Program or is there any other difference.
Back to top
View user's profile Send private message

Meenakshi Selvaraj

New User


Joined: 30 Oct 2009
Posts: 36
Location: Chennai

PostPosted: Fri Apr 23, 2010 3:42 pm    Post subject:
Reply with quote

Hi,


See the details of What is the basic difference between a Independant RUN-UNIT and an Extended RUN-UNIT?

A RU (RUN-UNIT) is kept OPEN when a dialog passes control to another dialog, user program or application function by using INVOKE, LINK, TRANSFER or EXECUTE NEXT FUNCTION.

A RU is extended when control passes to

- a user program (LINK)
- a dialog with premap process & no associated subschema
- a dialog with premap process & whose schema and subschema are same as those of issuing dialog & whose usage-modes are equally or less-restrictive than those of linking dialog
- Any lower level dialog, provided that the USING SUBSCHEMA-CONTROL clause of LINK command is used (LINK)

Currencies and record buffers established at higher levels in the application thread are cumulative and automatically passed to lower level dialogs.

Currencies and record buffers established at lower levels are released when the dialog becomes non-OPERATIVE.

Currencies established at lower levels are available to higher levels if
the run-unit is extended and a NOSAVE option is specified in INVOKE/LINK command .

ADVANTAGES:
If a USER PROGRAM issues Subschema BIND followed by any DML statement the program can deadlock at run-time. To avoid this, COMMIT should be coded before linking to a user program that issues a BIND/FINISH command

ADS/O suggests that the most efficient way to write user programs is remove BIND/FINISH from user programs and allow Extended RU to handle it. The run-unit is forced to extend by coding USING SUBSCHEMA-CONTROL in the LINK command.
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 -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm
No new posts Difference between -180 and -181 with... deepak_shrivastava DB2 4 Wed Jan 06, 2016 10:00 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us