Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing OS Commands from COBOL

Status
Not open for further replies.

dabowles

MIS
Jun 26, 2001
64
US
Is there anyway to execute command line commands through COBOL and if so, what is the syntax?

Thanks,

David B.
 
I apologize I didn't check the faqs first. I am using AcuCOBOL 74 on a SCO UNIX box. Is there a different command than calling system? The faq seems to indicate those are for Windows OS's.

Thanks again,

David B.
 
In fact the default shell is called, /bin/sh in your case.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
So are you saying that I should replace "SYSTEM" in the line CALL SYSTEM USING COMMAND-LINE. with /bin/sh, because the line CALL SYSTEM USING COMMAND-LINE. is working, however it is not parsing the text correctly that is stored in the WORKING-STORAGE variables.

Thanks,

David B.
 
I never said that, I just explained you how the routine works.
I strongly suggest you read your manual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top