Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

[11.2 SR4] Why Sleep function creates a variable ?

Hello,

With v11.2 SR4 I am using the function Sleep :

SLEEP 5000;

After using it a new variable called 5000 appears !

Is it normal ? Why ?

Thanks for your help !

Benoit

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Yes, it's the Qlikbug group.

Attaching a pdf made from the thread.

View solution in original post

7 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

I don't know why, but I verified that you are right!

I have a variable with 5000 as name and also as value.

Not applicable
Author

Hi swuehl,

I can't open your link.

Is it in a closed group ?

Thanks

swuehl
MVP
MVP

Yes, it's the Qlikbug group.

Attaching a pdf made from the thread.

Not applicable
Author

Ok Thanks swuehl

Anonymous
Not applicable
Author

Swuehl

Many thanks for clarifying that.  I noticed Sleep() leaving residual variables a while back and was wondering whether it was due to me or QlikView - now I know.

Thanks,     Bill

flipside
Partner - Specialist II
Partner - Specialist II

This has been bugging me for years - thanks swuehl.

Incidently, these two approaches seem to solve the issue for Sleep command at least ...

1)

SUB Sleep2(x)
sleep x;
end sub;

CALL Sleep2('2000');

2)
let x = 3000;
sleep x;
let x = Nothing;


flipside