'executable form' like 0N!

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.

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 - KDB+ Software, Training, Consulting