× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Variable length variables and data queues
  • From: Midrange Lists <Midrange@xxxxxxxxxxx>
  • Date: Tue, 24 Jul 2001 18:43:48 -0400

Yeah - that is my understanding

if the grey matter serves me correctly, the max size of the dtaq is about 
16meg


the length specified on the CRTDTAQ is the equivalent of a record length.
if you create it with a length of 128, and write 10 bytes to it, it "takes" 
(or, "uses" )   128 bytes...

<at the risk of starting a bun fight,>
kind of takes you back to the days of the s36 flat files..

kevin


At 05:58 PM 7/24/2001, you wrote:
>My understanding is that the CRTDTAQ MAXLEN parameter sets the entry length,
>not the number of bytes allocated for the queue. If MAXLEN = 100, each entry
>on the queue can be a maximum of 100 bytes.
>
>Roger
>
>-----Original Message-----
>From: Phil [mailto:sublime78ska@yahoo.com]
>Sent: Tuesday, July 24, 2001 4:23 PM
>To: RPG400-L@midrange.com
>Subject: RE: Variable length variables and data queues
>
>
>The size of the queue - is it the maximum per entry or the maximum of the
>sum of all entries on the queue?  To keep a queue from filling quickly, I
>have always made the maximum queue size large so I thought the latter was
>true.
>
>Phil
>
> > -----Original Message-----
> > From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
> > Behalf Of Denis Robitaille
> > Sent: Tuesday, July 24, 2001 4:14 PM
> > To: RPG400-L@midrange.com
> > Subject: Re: Variable length variables and data queues
> >
> >
> > When you create the data queue, you specify the maximum size of
> > any entry. But you can put smaller variable in to it. Also, when
> > you use variable length variable, I think you must also specify
> > the maximum length allowed
> >
> > Denis Robitaille
> > Directeur services techniques
> > Cascades Inc
> > 819 363 5187
> > fax 819 363 5177
> >
> >
> > >>> ALBartell@taylorcorp.com 07/24/01 03:40pm >>>
> > I know this has been addressed before here but I can't get onto
> > the archive
> > part of midrange.
> >
> > I am writing a program to output an XML stream to a data queue for a Java
> > pgm to pick up.  Since I am unsure of how big my XML stream could get I
> > would like to venture into variable length variables but I have never done
> > them before.  I have seen an example before and I thought all I
> > needed to do
> > was put the keyword 'variable' on the definition but that doesn't seem to
> > work.  If someone could post an example that would be great.
> >
> > Also, I am new to data queues.  Can I write one data queue entry that is
> > 2000 characters in length and then right another entry to the same data
> > queue that is 3000 characters in length?  I already know how to write to a
> > data queue but I don't know if what I described above is allowed.
> >
> > Thanks,
> > Aaron Bartell
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
> > david@midrange.com
> > +---
> >
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
> > david@midrange.com
> > +---
> >
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>+---
>| This is the RPG/400 Mailing List!
>| To submit a new message, send your mail to RPG400-L@midrange.com.
>| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator:
>david@midrange.com
>+---
>+---
>| This is the RPG/400 Mailing List!
>| To submit a new message, send your mail to RPG400-L@midrange.com.
>| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator: david@midrange.com
>+---


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.