Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: CALL "SYSTEM" USING WS-COMMAND-LINE.

$
0
0

Hi Alberto,

Make sure you null terminate your command. This works OK for me:-

      identification division.

      program-id. Program1.

      environment division.

      configuration section.

      data division.

      working-storage section.

      procedure division.

          call "system" using z"dir c:\|more"

          goback.

You can also use the X"91" Function 35 call to do this:-

documentation.microfocus.com/.../index.jsp;cp=5_5_3_9_30_6

or go to a Windows API (CreateProcess).

Regards

David


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>