Skip to main content

[archive] acuthin calling a subroutine library

  • May 6, 2010
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 05 May 2010]

we created a Acucobol shared object library called LIB1.lib using the cblutil command.

Our runcbl command includes the -y option pointing to the LIB1.lib file. This works fine for our programs under Unix. We have the line CALL "FINDWK" USING F-DATE F-WEEK. This does not work for the program called through acuthin.

Is there a way we can reference the subroutine library by a program started through acuthin.exe?

Right now we compile some of the subroutines outside of the object library and call them by programs started through acuthin with the line CALL "/COBS/OBJECTS/FINDWK.acu" USING F-DATE F-WEEK.

4 replies

[Migrated content. Thread originally posted on 05 May 2010]

we created a Acucobol shared object library called LIB1.lib using the cblutil command.

Our runcbl command includes the -y option pointing to the LIB1.lib file. This works fine for our programs under Unix. We have the line CALL "FINDWK" USING F-DATE F-WEEK. This does not work for the program called through acuthin.

Is there a way we can reference the subroutine library by a program started through acuthin.exe?

Right now we compile some of the subroutines outside of the object library and call them by programs started through acuthin with the line CALL "/COBS/OBJECTS/FINDWK.acu" USING F-DATE F-WEEK.
You can include the same -y option when you create the alias on the server. Keep in mind that the library will be searched for in the directory listed as the working directory in the alias, so if it's in a different directory you should use either a fully-qualified path or a path relative to the working directory.

[Migrated content. Thread originally posted on 05 May 2010]

we created a Acucobol shared object library called LIB1.lib using the cblutil command.

Our runcbl command includes the -y option pointing to the LIB1.lib file. This works fine for our programs under Unix. We have the line CALL "FINDWK" USING F-DATE F-WEEK. This does not work for the program called through acuthin.

Is there a way we can reference the subroutine library by a program started through acuthin.exe?

Right now we compile some of the subroutines outside of the object library and call them by programs started through acuthin with the line CALL "/COBS/OBJECTS/FINDWK.acu" USING F-DATE F-WEEK.
This is the command line used to call the program residing on the UNIX server by the PC running windows XP "C:\\Acucorp\\Acucbl620\\AcuGT\\bin\\acuthin.exe lewis:5630 BAK04". The BAK04 is defined in the acurcl.ini alias file as



BAK04


/ACUTHIN/PUB



/TT/OBJONL/BAK04.acu





The BAK04 is a program on the UNIX server that is calling the FINDWK subroutine. Where would I include the -y /COBS/SOURCES/LIB1.lib line in the alias file?

[Migrated content. Thread originally posted on 05 May 2010]

we created a Acucobol shared object library called LIB1.lib using the cblutil command.

Our runcbl command includes the -y option pointing to the LIB1.lib file. This works fine for our programs under Unix. We have the line CALL "FINDWK" USING F-DATE F-WEEK. This does not work for the program called through acuthin.

Is there a way we can reference the subroutine library by a program started through acuthin.exe?

Right now we compile some of the subroutines outside of the object library and call them by programs started through acuthin with the line CALL "/COBS/OBJECTS/FINDWK.acu" USING F-DATE F-WEEK.
Using the "acurcl -alias" dialog, just enter it when prompted for the command line:

$ sudo acurcl -alias
Enter the name of the alias file: [/etc/acurcl.ini] [U]./acurcl.ini[/U]

RCL Alias file options
1 - Add an alias entry
2 - Remove an alias entry
3 - Modify an alias entry
4 - Display alias entries
5 - Exit

Enter choice [4]: [U]1[/U]

Add an alias
Enter the alias name: [U]BAK04[/U]
Enter the working directory:
[U]/ACUTHIN/PUB[/U]
Enter the command line:
[U][COLOR="Red"]-y /COBS/SOURCES/LIB1.lib[/COLOR]  /TT/OBJONL/BAK04.acu[/U]
Press to continue...


The resulting alias entry, generated in acurcl.ini, will look like this:

 
    BAK04
    /TT/OBJONL/BAK04.acu
    [COLOR="Red"]/COBS/SOURCES/LIB1.lib[/COLOR]
    /ACUTHIN/PUB
 

[Migrated content. Thread originally posted on 05 May 2010]

we created a Acucobol shared object library called LIB1.lib using the cblutil command.

Our runcbl command includes the -y option pointing to the LIB1.lib file. This works fine for our programs under Unix. We have the line CALL "FINDWK" USING F-DATE F-WEEK. This does not work for the program called through acuthin.

Is there a way we can reference the subroutine library by a program started through acuthin.exe?

Right now we compile some of the subroutines outside of the object library and call them by programs started through acuthin with the line CALL "/COBS/OBJECTS/FINDWK.acu" USING F-DATE F-WEEK.
Thanks, it works find now.