Highlighted
Absent Member.
Absent Member.
1831 views

Utils.LBR in Micro Focus and Visual COBOL

Jump to solution

Hi Chris,

We are migrating the components from Micro Focus COBOL to Visual COBOL.

In some of the Micro Focus modules there is a Call statement "CALL Utils.LBR".

This Utils.LBR file is present in the MicroFocus Net Express 5.1' s Bin Folder. We think it is a Microfocus provided Library.

We are not sure of the Utils.LBR file, What is the purpose of it.

Now when we migrate those modules to Visual COBOL and try to execute them , At the Call Statement we are getting an Run-TIme Error, As it is not available in Visual COBOL's Bin folder, Instead there an an Utils.DLL present in the Visual COBOL's Bin folder.

When we comment the Utils.LBR call statement in the code , The Code is working fine and fetching the Data from Files and Passing it to C#.NET.

So the confusion is do we need the Utils.dll or Utils.Lbr file in Visual COBOL?

And if we need it then how to consume the utils.dll in Visual COBOL. (Through setting a PP pointer to Utils.Dll in the code and use it or anything else?)

Let me know if it is not clear.

Thanks

Charan

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi Charan,

In Visual COBOL we removed all of the Micro Focus proprietary files with extensions like .int/.gnt/lbr and rebuilt them as standard .dlls. That is why utils.lbr is now utils.dll.

We moved most of the functionality that was in previous versions of utils.lbr directly into the COBOL Run-time system so chances are it is no longer required.

If you change your calls from call "UTILS.LBR" to simply call "UTILS" then it will load the utils.dll version in case it is required.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi Charan,

In Visual COBOL we removed all of the Micro Focus proprietary files with extensions like .int/.gnt/lbr and rebuilt them as standard .dlls. That is why utils.lbr is now utils.dll.

We moved most of the functionality that was in previous versions of utils.lbr directly into the COBOL Run-time system so chances are it is no longer required.

If you change your calls from call "UTILS.LBR" to simply call "UTILS" then it will load the utils.dll version in case it is required.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

Thanks a lot Chris...

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.