# Arrays in 5.2 & 8.2

**URL:** <https://techcommunity.softwareag.com/t/arrays-in-5-2-8-2/102617>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [March 18, 2013, 6:37pm UTC](https://techcommunity.softwareag.com/t/arrays-in-5-2-8-2/102617 "2013-03-18T18:37:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_Krishna](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@Vamsi\_Krishna](https://techcommunity.softwareag.com/u/Vamsi_Krishna)\
**Post date:** [March 18, 2013, 6:37pm UTC](https://techcommunity.softwareag.com/t/arrays-in-5-2-8-2/102617/1 "2013-03-18T18:37:56Z")

</div>

Hi,

We are in process of migrating from 5.2 to 8.2.

We would like to know how the below condition will work in 5.2, so that we can re-write same in 8.2

If Is(Trim((Exec\_Proc\_2\_Out/StatusScript[]) ) = “XYZZZZ” )

Appreciate your help

Regards,  
Vamsi

---

<div class="post-metadata">

**Author:** ![Gadi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/gadi/32/16051_2.png) [@Gadi](https://techcommunity.softwareag.com/u/Gadi)\
**Post date:** [March 19, 2013, 1:20pm UTC](https://techcommunity.softwareag.com/t/arrays-in-5-2-8-2/102617/2 "2013-03-19T13:20:12Z")

</div>

Hi Vasmi,

I’m not sure I understand the question, the syntax you mentioned is from 8.2, so why do you need it converted to 5.2.5 and then re-write it again in 8.2.2?

As for the condition itself, I’m not sure if you can use it without specifying an index for the StatusScript array as there are multiple values expected and you’re comparing it with just one value.  
When I tried a similar condition, in version 8.2.2, I get this: If Is(Trim((Exec\_Proc\_2\_Out/StatusScript[index]) ) = “XYZZZZ” ), where “index” is an expression that you’re expected to define.  
In run-time it seems to take the first value, if no index was specified.

Regards,  
Gadi

---

<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:03pm UTC](https://techcommunity.softwareag.com/t/arrays-in-5-2-8-2/102617/3 "2021-04-02T15:03:01Z")

</div>

Closed on April 2, 2021, 3:03pm UTC


