# READ PARAMETERS from command line

**URL:** <https://community.openmainframeproject.org/t/read-parameters-from-command-line/5926>\
**Category:** COBOL technical questions\
**Created:** [July 27, 2020, 4:22pm UTC](https://community.openmainframeproject.org/t/read-parameters-from-command-line/5926 "2020-07-27T16:22:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dirkturlach](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@dirkturlach](https://community.openmainframeproject.org/u/dirkturlach)\
**Post date:** [July 27, 2020, 4:22pm UTC](https://community.openmainframeproject.org/t/read-parameters-from-command-line/5926/1 "2020-07-27T16:22:51Z")

</div>

hey,  
i have to write a program that gets 1 to 5 parameters.  
Is there a possibility to get the count of the parameters before reading they with accept?

I am using gnu-cobol.

thanks  
Dirk

---

_[View the full topic](https://community.openmainframeproject.org/t/read-parameters-from-command-line/5926)._
