You can use the following methods to enable a program to access and use data on the command line:
… working-storage section. 01 cmdline pic x(100). procedure division. accept cmdline from command-line …
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
Only in native COBOL can you use the command_line_linkage run-time system tunable to have parameters passed to your main program.