# 'executable form' like 0N!

**URL:** https://forum.kx.com/t/executable-form-like-0n/8163
**Category:** Community Support
**Tags:** kdb-and-q
**Created:** [February 27, 2013, 11:32am UTC](https://forum.kx.com/t/executable-form-like-0n/8163 "2013-02-27T11:32:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jack31](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jack31](https://forum.kx.com/u/jack31)
#### Post date: [February 27, 2013, 11:32am UTC](https://forum.kx.com/t/executable-form-like-0n/8163/1 "2013-02-27T11:32:00Z")

</div>

hi - is there a way of encoding ‘large’ data encoded in a string -like the way 0N! or -3! works?maybe something as big as til 54321no matter what i try, the string is always truncated, sometimes according to \cta, jack.

---

<div class="post-metadata">

### Author: ![Ryan\_Hamilton1](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Ryan\_Hamilton1](https://forum.kx.com/u/Ryan_Hamilton1)
#### Post date: [February 27, 2013, 12:04pm UTC](https://forum.kx.com/t/executable-form-like-0n/8163/2 "2013-02-27T12:04:00Z")

</div>

Hi Jack,

Not that I know of. Most string output relies on .Q.s and it’s associated functions.

q).Q.s  
k){$[(::)~x;“[”;`/:$[10h=@r:@[S[(."]("mailto:;`/:$[10h=@r:@[S[(.“)\c”)-2 1;0];x;::];, **-3!** x;r]]}

As you can see .Q.s relies on -3! for some types, -3! is an internal function and respects console settings so easiest option is to set \c very high.

For some types .Q.s2 would work and you can hack round that to output large tables etc. e.g.  
q){-1 x;} each .Q.s2 ( a:til 100000)  
q){-1 x;} each .Q.s2 (-1000?`3)!til 1000  
This will work but I wouldn’t like to rely on these undocumented functions.

Regards,  
Ryan

On 2/27/2013 11:32 AM, Jack Andrews wrote:

> hi - is there a way of encoding ‘large’ data encoded in a string -  
> like the way 0N! or -3! works?  
> maybe something as big as  
> til 54321  
> no matter what i try, the string is always truncated, sometimes according to \c

ta, jack.

```
-- 

```

[TimeStored.com](http://TimeStored.com) - KDB+ Software, Training, Consulting
