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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass data to Cobol program on AIX through shell scripts.

Status
Not open for further replies.

Kchinnaswamy

IS-IT--Management
Jan 31, 2001
27
0
0
US
Hi experts

I am trying to pass a file name to a cobol program at run time. Any ideas on how to do it in the command line?

example - a.out "/usr/lpp/cobol/test.input"

Help please.

Kumar
 
You would do it the same way as any other program, however in the COBOL program, there is a library or setting in the ENVIRONMENT or DATA DIVISION that defines the parameters you are expecting.

If you are using the AIX COBOL compiler, the procedures for doing this are defined quite nicely in the online documentation. I *do* recommend that you get the 1.1 update though. It fixes several bugs.

Bill.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top