Maximum number of streams??

Pavan Yadav

Member
Hi,
Anyone can please tell me, that wht's the maximum number of streams we can use at single time in a progress program??
Somewhere i read that , it's 5-streams.... But i tried with 20 streams & tht's also working fine??

So whta's the limit?
 
Ok, let it be suppose Maximum limit is 50...
If i want to use more than 50, let's say 55, if my requirement is like that.... than what to do in that case??
 
As I read it from the documentation the limit is per procedure NOT per session.

I'll take it that you are asking hypothetically. If someone hits that limit I would suggest to re-think the design in the first place. Chances are you're not only hitting a Progress limit but also an operating system limit which also limits the file handles a single process can have open simultaneously.

Regards, RealHeavyDude.
 
Without giving us a clue as to what is the requirement which lead to your design of having that many streams open simultaneously it's not possible to give you any advice. What is the reason that you need so many file handles open at the same time?

Regards, RealHeavyDude.
 
Treat them in the way we had to in the olden days of 5, that is with some of them you have to repeatedly close then open with append.
e.g
Output stream s1 to <File>
..
..
put stream s1 <sehsdhfsdljfhsdf> skip.
output stream s1 close.
..
..
Output stream s1 to <File> append.
put stream s1 <sehsdhfsdljfhsdf> skip.
output stream s1 close.
etc, etc

But as RHD says if you have a procedure that needs to have more than 50 streams open at once you have some serious design issues.
 
Of course there's the unnamed stream too. So that makes 51 does it not? That must surely solve all your problems?! ;)

How on earth would you need 50 concurrent streams?!
 
Thanks All....

Can conclude that.... IFFFFF i have more than 50 streams to be used, than i have to modify the program ...
& no straight or alternate solution for this....
But if i am using lower version of progress than??

I am not sure if solution by StuartT will work fine or not... or is it the alternate approach...??
 
There's no magic button you can press. Other than re-work your design or re-use existing streams there is no way you will succeed regardless what the exact limit is.

Regards, RealHeavyDude.
 
Back
Top