Code Comments
Programming Forum and web based access to our favorite programming groups.Hi I have 1 program with NORENT option and this program is called by batch and online(ADS). The progam is define REENTRANT in IDMS. Should i need compile/link the program with RENT option? The program call subrotines in assembler and i have some problems, the terminal defined in IDMS stay active but don't respond. We need deactivate and then activate it, then the system work well. I don't find where is the problem. Any idea? Tks
Post Follow-up to this messagemja@interbolsa.pt wrote: > Hi > I have 1 program with NORENT option and this program is called by batch > and online(ADS). > > The progam is define REENTRANT in IDMS. > > Should i need compile/link the program with RENT option? > > The program call subrotines in assembler and i have some problems, the > terminal defined in IDMS stay active but don't respond. We need > deactivate and then activate it, then the system work well. > > I don't find where is the problem. > > Any idea? > Tks > First, I do not know anything about IDMS or ASD. But, from a practical standpoint, I would be more interested in how you defined the program to the Linker/Binder. If the program is linked as RENT and/or IDMS treats it as RENT as a result of what you told it, you have an exposure as follows: * Program is loaded. * Values changed in Working Storage. * Program terminates. * Because of the RENT definition, the program remains in storage even though there is not a current user [i.e., The Use Count will be zero.] * A subsequent call to Program will see the changed values in W-S instead of the initial values the program expects. An alternative problem: * The program is interrupted by some event. * Another task tries to enter the RENT program because it is actually expected to be reentrant. * This subsequent task will not only get the changed W-S, but will likely change other values to not match what the first program believes to be there. Now, TWO programs get bad results. Lesson: Don't lie to the compiler and/or the Linker/Binder and/or to IDMS. NOTHING good can come from this. Re: Terminal issues I have no idea... Good luck! Carl
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.