Skip to main content

[archive] BAT file subprogram

  • September 16, 2008
  • 4 replies
  • 0 views

[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.

4 replies

[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.
You need to use a config file and put CODE-PREFIX=YourObjectDirectory in the config file.

so you'll do wrun32 -c yourconfigfile ProgramName

[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.
You need to use a config file and put CODE-PREFIX=YourObjectDirectory in the config file.

so you'll do wrun32 -c yourconfigfile ProgramName

[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.
You need to use a config file and put CODE-PREFIX=YourObjectDirectory in the config file.

so you'll do wrun32 -c yourconfigfile ProgramName

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