Highlighted
Absent Member.
Absent Member.
800 views

[archive] acuthin calling a subroutine library

[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.
0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] acuthin calling a subroutine library

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.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] acuthin calling a subroutine library

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?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] acuthin calling a subroutine library

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
 
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] acuthin calling a subroutine library

Thanks, it works find now.
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.