Problem:
It can be interesting to dynamically set, for test purposes or whatever, a COMMAND-LINE within a program....
How to do it?
Resolution:
The sample code pasted below show how to:
working-storage section.
01 CMDline pic x(100).
01 CMDline1 pic x(100).
procedure division.
move "1 2 3 4 5 6 7 8 9 10 " to CMDline
display CMDline upon command-line
accept CMDline1 from command-line
display "CMDLINE received " CMDline1