UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Lieutenant Commander
Lieutenant Commander
154 views

Passing Data to Program from Command line under Window

Hi  to everybody,

I'm trying to figure out how to pass data to my Cobol program that runs on Windows. For mainframes, that would be via the Parm keyword on the JCL Exec Pgm;  for Windows it should be specifying the data to pass on the Command line (e.g. C:\program path address....\Progname   "data to pass".).   Any suggestion?

                                                                                                          Thanks

 

0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

There are several methods of performing this task in Visual COBOL.

This is covered in the docs here:

0 Likes
Lieutenant Commander
Lieutenant Commander

Thanks, Chris. I have not tried yet as I need to do some readings beforehand because is not straightforward to me yet. I'll let you know. Thanks.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.