Highlighted
Absent Member.
Absent Member.
250 views

[archive] BAT file subprogram

[Migrated content. Thread originally posted on 15 September 2008]

version 8.1

c:\acucobol\object\batchprog.acu exists (main program) and it calls subprogram stdlist
c:\acucobol\object\stdlist.acu exists

When batchprog is run when I'm inside of the directory that holds both acu files, everything is fine.

c:\acucobol\bat\batchprog.bat exists and it contains the following:
c:\acucobol\object\BATCHPROG.ACU
This runs until batchprog calls stdlist and then it fails because it can't find the subprogram.

Is there a way to do this without having the bat file and the 2 programs all in the same place.
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] BAT file subprogram

You need to use a config file and put CODE-PREFIX=YourObjectDirectory in the config file.

so you'll do wrun32 -c yourconfigfile ProgramName
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] BAT file subprogram

Thanks Shaun, that helps
For anyone else referring to this, that's an underscore between code & prefix, not a dash
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.