# Access data in all tasks

**URL:** https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251
**Category:** RAPID Programming
**Created:** [May 23, 2018, 9:21am UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251 "2018-05-23T09:21:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![scottMHA](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@scottMHA](https://tech-community.robotics.abb.com/u/scottMHA)
#### Post date: [May 23, 2018, 9:21am UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251/1 "2018-05-23T09:21:27Z")

</div>

Is there a way to see data across all tasks in a controller? For example i have VAR num nChkCount; declared in task 1 and want to be able to read it in task 2 but unless its declared locally in task 2 it can not be seen.

---

<div class="post-metadata">

### Author: ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)
#### Post date: [May 23, 2018, 9:43am UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251/2 "2018-05-23T09:43:36Z")

</div>

Hello, you have to declare your variable as PERS in the two tasks:

```auto
PERS num nChkCount:=0;

```

---

<div class="post-metadata">

### Author: ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)
#### Post date: [May 23, 2018, 1:14pm UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251/3 "2018-05-23T13:14:01Z")

</div>

Or, could turn nChkCount into a group output to be used by any task.

---

<div class="post-metadata">

### Author: ![scottMHA](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@scottMHA](https://tech-community.robotics.abb.com/u/scottMHA)
#### Post date: [May 24, 2018, 8:57am UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251/4 "2018-05-24T08:57:38Z")

</div>

im trying to avoid duplicating data, instead im just passing the num through a group output and reading it in the other task

---

<div class="post-metadata">

### Author: ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)
#### Post date: [May 24, 2018, 1:30pm UTC](https://tech-community.robotics.abb.com/t/access-data-in-all-tasks/8251/5 "2018-05-24T13:30:22Z")

</div>

Either way, but it’s not data duplication – by declaring a global PERS in both tasks they stay linked as one.
