Mainframe Software

 View Only

How can I tell if a batch program is running in CV or Local mode?

By Gary Cherlet posted May 14, 2015 07:38 AM

  

Another post from the "IDMS Help Desk" series. As with previous posts on this blog - the question is in the post and in the attachment along with the reply. As a result of Chuck Hardee's contribution, below, the attachment has been updated to reflect the use of IDMSIN01 to determine if a program is running under Local or CV mode, as well as access other potentially useful run-time environment variables. Obviously the original solution was very old, and I believe predated IDMSIN01. Regardless of the history - we would always recommend using published CA-IDMS API's which provide the desired functionality. Thanks Chuck!

 

Enjoy - cheers - GaryC

 

-----Original Message-----

 

From:          IDMS User

To:              IDMS Help Desk

Subject:      How can I tell if a batch program is running in CV or Local mode?

 

We have a situation where, after the BIND RUN UNIT, if the program is running in Local Mode we will want to READY … RETRIEVAL and only issue retrieval DML verbs. But if we are running in CV Mode we will READY … UPDATE and we may issue update DML verbs.

 

How can we determine this programmatically, at run-time?

   

Thank you

IDMS User – Application Developer / Application Support

 

 

 

 

 

 

 

4 comments
2 views