Highlighted
Absent Member.
Absent Member.
427 views

[archive] Program already in use

[Migrated content. Thread originally posted on 23 February 2005]

I have 2 programs :

1. A Program with a screen
2. A program that read's and writes Data

Program 1 has repeated call's to program 2 to read and write
data

Program 2 only gets cancelled when Program 1 exits.

Now and again I get a runtime error message

PROGRAM_NAME: Program already in use
cobol error at 41324a

What does this error mean, I cannot find an explanation
anywhere in the 6.1 help files

PS : there is no recursion happening anywhere
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Program already in use

Are you using threads?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Program already in use

Hi,

I am not using threads at all, just straight calls

eg CALL "PDEMPRD1" using Linkarea emprec1.

This program reads and updates a Vision Indexed File,

Could it be that the file stays open the whole time !
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Program already in use

It may not be designated recursion, but I suspect you may be subject to inadvertently recursion, that is what it sounds like.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.