For displaying reports my acucobol programs call winword through the C$SYSTEM. ie,
05 winword-location pic x(60) value "c:\\progra~1\\micros~1\\root\\office15\\winword.exe "
CALL "C$SYSTEM" USING winword-location report-name.txt giving exit-status
Is there a better way for displaying reports instead of using command prompt to call Word?
The program which calls Word maintains a hardcoded list of locations for WinWord.exe and if its not found, the program calls NotePad. Got two problems - 1) WinWord always moves location when new o/s comes out, so it'd be nice if there was an easy way that always worked for locating WinWord. 2) The latest version of Word is 64 bit and having problems calling it from 32bit environment.
Thanks alot
#reports
#CSYSTEM
#WinWord
#CommandPrompt



