Skip to main content

Passing Data to Program from Command line under Window

  • March 24, 2021
  • 2 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

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

 

2 replies

Chris Glazier
Forum|alt.badge.img+3

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

 

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

This is covered in the docs here:


Dominique Sacre
Forum|alt.badge.img+2

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

This is covered in the docs here:

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.