IBM Support

Incorrect Function Error When Trying to Run Program From a Folder

Troubleshooting


Problem

Newer versions of Microsoft Windows cannot run programs that reside in a shared folder (QDLS file system).

Resolving The Problem

A Microsoft Windows program such as CALC.EXE or NOTEPAD.EXE can be copied to a folder (in the QDLS file system) and run from a PC through a mapped network drive. This will work without any errors when the client PC operating system is older than Windows XP (Windows 2000, Microsoft Windows NT, Windows 98, and so on). The Windows XP and Windows 2003 server will report an error with the path and executable name and the text Incorrect function.

Image of PC DOS error saying U:NOTEPED.EXE Incorrect function.

Traces reveal that when these newer versions of Windows attempt to run the program, they try to read files such as \notepad.exe.Manifest and \notepad.exe.Config. The QDLS file system is permanently restricted to an 8.3 naming convention. The file name can be no more than 8 characters and it can have a file extension of no more than 3 characters. The error above is due to the file system reporting a lack of support for the long file name.

The programs must be moved to a directory in the "root" file system if they are to be run over a network drive. Directories will support long file names and will simply report back to Windows that the file does not exist rather than give the fatal error that the QDLS file system reports. This will allow the program to continue its start up.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

406870932

Document Information

More support for:
IBM i

Software version:
6.1.0

Operating system(s):
IBM i

Document number:
637709

Modified date:
18 December 2019

UID

nas8N1015096

Manage My Notification Subscriptions