Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Dialog System application fails with RTS 173 on mfdir2

Dialog System application fails with RTS 173 on mfdir2


A Dialog System application fails with the following error when it does a CALLOUT to "dsdir":

Load error: file 'mfdir2'
error code: 173, pc=0, call=1, seg=0,
173 Called program file not found in drive/directory.


This RTS 173 on 'mfdir2' occurs when the application is linked as 'Console Application' in Visual COBOL. It should be linked as 'Windows Application' instead.

Here are the steps to resolve this issue:

  1. open the project in Visual Studio
  2. open the project properties
  3. select Windows Application from the Output Type drop-down under Application properties
  4. rebuild the project
  5. redeploy the application

The equivalent of the above from the command line is to use the -g switch in the cbllink command, e.g. cbllink -g -v -re ...

Tags (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-10-19 22:39
Updated by:
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.