# BugReport: Spurious \<Unknown\> Dependency for DEFINE \[SUBROUTINE\]

**URL:** <https://techcommunity.softwareag.com/t/bugreport-spurious-unknown-dependency-for-define-subroutine/170614>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Adabas-Natural-Community-Edition\
**Created:** [April 6, 2013, 5:54am UTC](https://techcommunity.softwareag.com/t/bugreport-spurious-unknown-dependency-for-define-subroutine/170614 "2013-04-06T05:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Law](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/david_law/32/740_2.png) [@David\_Law](https://techcommunity.softwareag.com/u/David_Law)\
**Post date:** [April 6, 2013, 5:54am UTC](https://techcommunity.softwareag.com/t/bugreport-spurious-unknown-dependency-for-define-subroutine/170614/1 "2013-04-06T05:54:16Z")

</div>

If you define a Subroutine without the SUBROUTINE keyword  
(which is perfectly legal, but rather stupid), the Dependencies  
Panel shows this as an unknown dependency. See Attachment.

Also, if you make the Subroutine Name longer than 32  
(which is also perfectly legal & not at all stupid),  
then the spurious entry disappears.

Here’s some example code:

```auto
/** New Program DEPENDCY.
/**
/* ....+....1....+....2....+....3....+....4
PERFORM DEFINE-WITHOUT-SUBROUTINE-33-LONG
DEFINE DEFINE-WITHOUT-SUBROUTINE-33-LONG
    IGNORE
END-SUBROUTINE
*
PERFORM DEFINE-WITHOUT-SUBROUTINE
DEFINE DEFINE-WITHOUT-SUBROUTINE
    IGNORE
END-SUBROUTINE
*
END
```

![NatONE_Spurious_Unknown_Dependency.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/2/24962d2805d2662854b19d7bc8cc81dc169664f4.jpeg)

---

<div class="post-metadata">

**Author:** ![David\_Law](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/david_law/32/740_2.png) [@David\_Law](https://techcommunity.softwareag.com/u/David_Law)\
**Post date:** [June 25, 2018, 5:38am UTC](https://techcommunity.softwareag.com/t/bugreport-spurious-unknown-dependency-for-define-subroutine/170614/2 "2018-06-25T05:38:10Z")

</div>

Shame no one from Software AG has bothered to address this issue in the 5 years since it was posted.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:28pm UTC](https://techcommunity.softwareag.com/t/bugreport-spurious-unknown-dependency-for-define-subroutine/170614/3 "2021-04-02T15:28:35Z")

</div>


