Cadet 3rd Class
Cadet 3rd Class
175 views

REPOSITORY paragraph

I am using Visual Cobol Development Hub on HP-UX.  I recently discovered the REPOSITORY paragraph in the CONFIGURATION SECTION of the ENVIRONMENT DIVISION and am trying to use the FUNCTION feature.  From the documentation, it appears it only works with the ISO2002 and MF compiler dialects, but the docs also say that MF is the default.  None the less, when I issue a FUNCTION ALL INTRINSIC. statement under REPOSITORY, my compile listing flags the line as "documentary" and generates errors when I try to use intrinsic functions (like MOD) without the FUNCTION keyword.

Has anyone used this successfully?  I took my test source code to my PC and compiled it (unchanged) successfully using GnuCobol.  I would hope if a free compiler works, MF would work too.

0 Likes
0 Replies
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.