# Convert tag data set to pds through scripting

**URL:** <https://forum.inductiveautomation.com/t/convert-tag-data-set-to-pds-through-scripting/14776>\
**Category:** Ignition\
**Created:** [July 13, 2017, 12:42am UTC](https://forum.inductiveautomation.com/t/convert-tag-data-set-to-pds-through-scripting/14776 "2017-07-13T00:42:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhahn](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Jhahn](https://forum.inductiveautomation.com/u/Jhahn)\
**Post date:** [July 13, 2017, 12:42am UTC](https://forum.inductiveautomation.com/t/convert-tag-data-set-to-pds-through-scripting/14776/1 "2017-07-13T00:42:21Z")

</div>

How do I convert a tag data set to a pds data set through scripting?

Currently I assign the tag data set to a table and then convert the tables data set to pds.

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [July 13, 2017, 12:43pm UTC](https://forum.inductiveautomation.com/t/convert-tag-data-set-to-pds-through-scripting/14776/2 "2017-07-13T12:43:07Z")

</div>

```auto
tagValue = system.tag.read("MyTag").value
pds = system.dataset.toPyDataSet(tagValue)

```

---

<div class="post-metadata">

**Author:** ![Jhahn](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Jhahn](https://forum.inductiveautomation.com/u/Jhahn)\
**Post date:** [July 19, 2017, 6:02pm UTC](https://forum.inductiveautomation.com/t/convert-tag-data-set-to-pds-through-scripting/14776/3 "2017-07-19T18:02:37Z")

</div>

> [@JGJohnson](#):
>
> tagValue = system.tag.read("MyTag").value  
> pds = system.dataset.toPyDataSet(tagValue)

Thanks. I was leaving off the ".value" it was driving me crazy
