# Invalid value in C\*-Variable

**URL:** <https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [January 7, 2011, 1:46pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873 "2011-01-07T13:46:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [January 7, 2011, 1:46pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873/1 "2011-01-07T13:46:15Z")

</div>

Hello all!

We got a really strange error: an invalid value in C\*-Variable. This problem was reported to SAG via empower, but they can’t reproduce it at the moment (since they are on the Adabas Version 6.2.)

Our Product-Versions are: Adabas 6.1.10 and Natural 6.3.9.0 - both on Solaris.

So if you are on similar Versions it would be wonderful if you could try the following:

- Import the enclosed FDU as a new Adabas-File
- Create a DDM (you can leave the automatically generated field names as they are, e.g. AB-1).
- Run the following Natural-Program

```auto
define data local
1 view1 view file-242
2 AB-1
2 XA-1
2 DQ-1 (2)
2 C*DQ-1
2 AN-1
*
1 view2 view file-242
2 AB-1
2 c*DQ-1
*
end-define
*
store-view1. store view1
write 'store of isn' *ISN(store-view1.) /
*
READ (1) view1 by isn
write 'ISN view1 ' *ISN /
'C*DQ-1 ' C*DQ-1 (EM=HHHHHHHH) /
END-READ
*
READ (1) view2 by isn
write 'ISN view2 ' *ISN /
'C*DQ-1 ' C*DQ-1 (EM=HHHHHHHH) /
end-read
*
if view2.c*DQ-1 > 0 /* NAT6223 here
ignore
end-if
*
backout transaction
*
end
```

My output is:

```auto
store of isn 1

ISN view1 1
C*DQ-1 303030

ISN view2 1
C*DQ-1 2C4451
```

BTW: If you do a NAT\_TRACE=4 it seems like the record buffer contains values from the former format buffer.

But as a first step it would be very nice if anyone could reproduce that problem.

Regards

Matthias  
[f122.DCUFDT.txt](https://techcommunity.softwareag.com/uploads/short-url/onCqR8wb7fqSubvbDZr9RwZlQ6r.txt) (3.33 KB)

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [January 17, 2011, 2:33pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873/2 "2011-01-17T14:33:55Z")

</div>

Finally we found the reason: It seems like an adabas hotfix causes this problem…

---

<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:** [March 10, 2011, 7:16pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873/3 "2011-03-10T19:16:14Z")

</div>

The problem has been solved with the newest hotfix ADA\_6.1\_SP10\_Fix010.

Regards,  
Wolfgang

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [March 11, 2011, 1:22pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873/4 "2011-03-11T13:22:17Z")

</div>

> [@Wolfgang Obmann](#):
>
> The problem has been solved with the newest hotfix ADA\_6.1\_SP10\_Fix010.

Yes, it’s fixed. Sorry. I forgot to tell that here. :oops:

---

<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, 2:59pm UTC](https://techcommunity.softwareag.com/t/invalid-value-in-c-variable/95873/5 "2021-04-02T14:59:37Z")

</div>

Closed on April 2, 2021, 2:59pm UTC


