×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

COBOL General discussion FAQ

COBOL Weblers

How can I call the Windows operating system from PC COBOL by CliveC
Posted: 27 Jun 05

Calling the windows operating system, for example to call a .BAT command, opens up lots of possiblities. See FAQ209-4551 for an example of starting up a browser.

In thread209-1053829, others were asked to contribute entries for how to call the Windows operating system in their COBOL versions.

Here is a summary:

ACUCOBOL contributed by landei
CALL "c$system" USING system-command-line.

MICRO FOCUS COBOL contributed by PHV
CALL "SYSTEM" USING Null-Terminated-Command-Line

RM/COBOL contributed by k5tm
CALL "SYSTEM" USING Command-Line

AS400 COBOL and ILE-COBOL contributed by fredericofonseca  
Not the same environment, but with AS400 COBOL and ILE-COBOL you can just call almost any program directly. For the situations where you can't, then the creation of a CL program is the easy solution. Alternatively one can call "qcmdexc" with is the equivalent of the call "system" or call "c$system" from other PC compilers.
Very easy and you can get parameters passed back if needed.

PLEASE RESPOND TO THE ORIGINAL thread209-1053829 IF YOU HAVE ANY ADDITIONS.

Back to COBOL General discussion FAQ Index
Back to COBOL General discussion Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close