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!

calling a cobol program from a unix script

Status
Not open for further replies.

scoobs

Instructor
Aug 5, 2002
17
US
I am wondering what the best scenario is when calling a cobol program from a unix script.

As an example I normally type RUN <program name>.
How is the exec command different from the RUN?
 
Scoobs:

Based on my past unix/cobol, this is just an educated guess, but RUN is probably your cobol runtime or a shell script that runs your cobol runtime.

Any unix command executed with exec, executes in the current without spawning a child process - probably something that doesn't concern you.

I see no reason why you can't simply place:

RUN <program name>

in another shell script. Of course, you might need to do some other housekeeping such as setting the PATH correctly so you can find RUN and <program name>, cd to the right directory, etc.

Regards,


Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top