You can use the following methods to enable a program to access and use data on the command line:
In managed COBOL, you can use the following construct:
program-id. Program1.
data division.
Procedure division using by value cmds as string occurs any.
Perform varying s as string thru CMDS
Display s
End-perform
Comments:
Only in native COBOL can you use the command_line_linkage run-time system tunable to have parameters passed to your main program.