× 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: Kevin H <Midrange@xxxxxxxxxxx>
  • Date: Tue, 24 Jul 2001 20:35:19 -0400

I dont rightly know how to rtv the current Q-length.
When RCVDTAQ, it gives you the length of the "buffer".


I guess as long as the Q is 3000 long, your example should not have a problem.
It will not allow you to send longer than the length..

To correct an earlier posting, the max DTAQ size is 2gig  (but i have V5 
loaded, so am not sure if it changed)


I read your posting about XML and the IFS.
THe IBM site for ALPHAWORKS has some stuff on XML,
and, if I remember correctly, they have XML to the IFS.
the alphaworks site was real useful to me..

apologies but i have been involved in various projects lately,
and the details run together a little when the project drops further into 
the past..

kevin

At 07:17 PM 7/24/2001, you wrote:
>How do I view the length of an existing data queue?
>
>Right now I have some code from someone else that looks like the following:
>  C       call      'QSNDDTAQ'
>  C       parm      'EMAILDTAQ'   DQ#NAM           10
>  C       parm      'TESTLIB'     DQ#LIB           10
>  C       parm      2000          DQ#LEN            5 0
>  C       parm                    DQDTA
>
>Does this code set the max length for this data queue entry or does it just
>say how long this particular string is that I am sending?  So could my next
>call to QSNDDTAQ pass 3000 into DQ#LEN because my varying variable became
>longer?
>
>I guess my other option would be to make it as big as possible.  Is there
>any performance considerations with this?  I would be wasting a lot of space
>for each data queue entry.
>
>Maybe I am going about this all the wrong way.  Instead of trying to fit my
>whole XML string into this data queue maybe I should just write the XML
>string out to a stream file in the IFS and put the path to the file in the
>data queue and have the program monitoring the data queue go and get it from
>the IFS.
>
>Thinking hard,
>Aaron Bartell
>
>-----Original Message-----
>From: Mackie, Roger L. (Precision Press) [mailto:RLMackie@ppress-tc.com]
>Sent: Tuesday, July 24, 2001 4:58 PM
>To: 'RPG400-L@midrange.com'
>Subject: RE: Variable length variables and data queues
>
>
>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
>+---


+---
| 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 ...

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.