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

Difference between Independant and Extended RUN-UNITs


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts RPLDDDD field for extended VSAM - ESDS JCL & VSAM 1
Search our Forums:

Back to Top